summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-16 10:25:15 +0000
committerGerrit Code Review <review@openstack.org>2016-09-16 10:25:15 +0000
commit2f6118f52b110f86427dc387bc66610d96be4468 (patch)
tree8d5fa60da77f8e6c13db46fa80a6a65d407029d2
parent51cef8e175ad80b624e330e005af71acfa835227 (diff)
parentf76c069b30fe690fefabca8b75e04543a97bf444 (diff)
downloadceilometer-2f6118f52b110f86427dc387bc66610d96be4468.tar.gz
Merge "Refactor Ceilometer event API"
-rw-r--r--api-ref/source/events.inc12
-rw-r--r--api-ref/source/parameters.yaml42
2 files changed, 27 insertions, 27 deletions
diff --git a/api-ref/source/events.inc b/api-ref/source/events.inc
index 0b0585bc..f72a8283 100644
--- a/api-ref/source/events.inc
+++ b/api-ref/source/events.inc
@@ -24,7 +24,7 @@ Request
.. rest_parameters:: parameters.yaml
- - message_id: message_id
+ - message_id: message_id_path
Response Parameters
@@ -32,9 +32,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- - traits: traits
- - raw: raw
- - generated: generated
+ - events: events
+ - raw: event_raw
+ - generated: event_generated
- event_type: event_type
- message_id: message_id
@@ -75,8 +75,8 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- - traits: traits
- - raw: raw
+ - events: events
+ - raw: event_raw
- generated: generated
- event_type: event_type
- message_id: message_id
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index f2c11317..5bfed7bf 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -8,7 +8,7 @@ alarm_id_path:
in: path
required: false
type: string
-message_id_1:
+message_id_path:
description: |
The UUID of the message.
in: path
@@ -316,6 +316,19 @@ duration_start:
in: body
required: true
type: string
+event_generated:
+ description: |
+ The date and time when the event occurred.
+ in: body
+ required: true
+ type: string
+event_raw:
+ description: |
+ A dictionary object that stores event messages
+ for future evaluation.
+ in: body
+ required: true
+ type: object
event_storage:
description: |
If ``true``, the capabilities for the storage
@@ -329,6 +342,13 @@ event_type:
in: body
required: true
type: string
+events:
+ description: |
+ A list of objects. Each object contains key and
+ value pairs that describe the event.
+ in: body
+ required: true
+ type: array
events:query:simple:
description: |
If ``true``, the simple query capability for
@@ -336,12 +356,6 @@ events:query:simple:
in: body
required: true
type: boolean
-generated:
- description: |
- The date and time when the event occurred.
- in: body
- required: true
- type: string
id:
description: |
The UUID of the sample.
@@ -464,13 +478,6 @@ project_id_2:
in: body
required: true
type: string
-raw:
- description: |
- A dictionary object that stores event messages
- for future evaluation.
- in: body
- required: true
- type: object
recorded_at:
description: |
The date and time when the sample was recorded.
@@ -697,13 +704,6 @@ timestamp_1:
in: body
required: true
type: string
-traits:
- description: |
- A list of objects. Each object contains key and
- value pairs that describe the event.
- in: body
- required: true
- type: array
type:
description: |
The meter type.