Merge "Implements complex query functionality for alarm history"

This commit is contained in:
Jenkins
2014-02-19 05:07:48 +00:00
committed by Gerrit Code Review
7 changed files with 311 additions and 12 deletions

View File

@@ -94,9 +94,9 @@ field of *Sample*).
Complex Query
+++++++++++++
The filter expressions of the Complex Query feature operate on the fields
of *Sample* and *Alarm*. The following comparison operators are supported: *=*,
*!=*, *<*, *<=*, *>* and *>=*; and the following logical operators can be
used: *and* and *or*.
of *Sample*, *Alarm* and *AlarmChange*. The following comparison operators are
supported: *=*, *!=*, *<*, *<=*, *>* and *>=*; and the following logical operators
can be used: *and* and *or*.
Complex Query supports defining the list of orderby expressions in the form
of [{"field_name": "asc"}, {"field_name2": "desc"}, ...].
@@ -111,6 +111,9 @@ The *filter*, *orderby* and *limit* are all optional fields in a query.
.. rest-controller:: ceilometer.api.controllers.v2:QueryAlarmsController
:webprefix: /v2/query/alarms
.. rest-controller:: ceilometer.api.controllers.v2:QueryAlarmHistoryController
:webprefix: /v2/query/alarms/history
.. autotype:: ceilometer.api.controllers.v2.ComplexQuery
:members: