10
The Capabilities API allows you to directly discover which functions from the
11
V2 API functionality, including the selectable aggregate functions, are
12
supported by the currently configured storage driver. A capabilities query
13
returns a flattened dictionary of properties with associated boolean values -
14
a 'False' or absent value means that the corresponding feature is not
15
available in the backend.
17
.. rest-controller:: aodh.api.controllers.v2.capabilities:CapabilitiesController
18
:webprefix: /v2/capabilities
20
.. autotype:: aodh.api.controllers.v2.capabilities.Capabilities
28
.. rest-controller:: aodh.api.controllers.v2.alarms:AlarmsController
29
:webprefix: /v2/alarms
31
.. rest-controller:: aodh.api.controllers.v2.alarms:AlarmController
32
:webprefix: /v2/alarms
34
.. autotype:: aodh.api.controllers.v2.alarms.Alarm
37
.. autotype:: aodh.api.controllers.v2.alarm_rules.threshold.AlarmThresholdRule
40
.. autotype:: aodh.api.controllers.v2.alarm_rules.combination.AlarmCombinationRule
43
.. autotype:: aodh.api.controllers.v2.alarm_rules.gnocchi.MetricOfResourceRule
46
.. autotype:: aodh.api.controllers.v2.alarm_rules.gnocchi.AggregationMetricByResourcesLookupRule
49
.. autotype:: aodh.api.controllers.v2.alarm_rules.gnocchi.AggregationMetricsByIdLookupRule
52
.. autotype:: aodh.api.controllers.v2.alarms.AlarmTimeConstraint
55
.. autotype:: aodh.api.controllers.v2.alarms.AlarmChange
61
The filter expressions of the query feature operate on the fields of *Alarm*
62
and *AlarmChange*. The following comparison operators are supported: *=*, *!=*,
63
*<*, *<=*, *>*, *>=* and *in*; and the following logical operators can be used:
64
*and* *or* and *not*. The field names are validated against the database
67
.. note:: The *not* operator has different meaning in Mongo DB and in SQL DB engine.
68
If the *not* operator is applied on a non existent metadata field then
69
the result depends on the DB engine. For example if
70
{"not": {"metadata.nonexistent_field" : "some value"}} filter is used in a query
71
the Mongo DB will return every Sample object as *not* operator evaluated true
72
for every Sample where the given field does not exists. See more in the Mongod DB doc.
73
On the other hand SQL based DB engine will return empty result as the join operation
74
on the metadata table will return zero rows as the on clause of the join which
75
tries to match on the metadata field name is never fulfilled.
77
Complex Query supports defining the list of orderby expressions in the form
78
of [{"field_name": "asc"}, {"field_name2": "desc"}, ...].
80
The number of the returned items can be bounded using the *limit* option.
82
The *filter*, *orderby* and *limit* are all optional fields in a query.
84
.. rest-controller:: aodh.api.controllers.v2.query:QueryAlarmsController
85
:webprefix: /v2/query/alarms
87
.. rest-controller:: aodh.api.controllers.v2.query:QueryAlarmHistoryController
88
:webprefix: /v2/query/alarms/history
90
.. autotype:: aodh.api.controllers.v2.query.ComplexQuery