Caution
BETA: This API is a work in progress and is subject to change.
For details on how to use telemetry, see Using OpenStack Telemetry
The telemetry high-level interface is available through the telemetry
member of a Connection
object. The
telemetry
member will only be added if the service is detected.
openstack.telemetry.v2._proxy.
Proxy
(session)¶Caution
This API is a work in progress and is subject to change.
find_sample
(name_or_id, ignore_missing=True)¶Find a single sample
Parameters: |
|
---|---|
Returns: | One |
openstack.telemetry.v2._proxy.
Proxy
(session)Caution
This API is a work in progress and is subject to change.
find_statistics
(name_or_id, ignore_missing=True)¶Find a single statistics
Parameters: |
|
---|---|
Returns: | One |
statistics
(meter, **query)¶Return a generator of statistics
Parameters: |
|
---|---|
Returns: | A generator of statistics objects |
Return type: |
openstack.telemetry.v2._proxy.
Proxy
(session)Caution
This API is a work in progress and is subject to change.
get_resource
(resource)¶Get a single resource
Parameters: | resource – The value can be the ID of a resource or a
Resource
instance. |
---|---|
Returns: | One Resource |
Raises: | ResourceNotFound
when no resource can be found. |
find_resource
(name_or_id, ignore_missing=True)¶Find a single resource
Parameters: |
|
---|---|
Returns: | One |
openstack.telemetry.v2._proxy.
Proxy
(session)Caution
This API is a work in progress and is subject to change.
find_meter
(name_or_id, ignore_missing=True)¶Find a single meter
Parameters: |
|
---|---|
Returns: | One |
openstack.telemetry.v2._proxy.
Proxy
(session)Caution
This API is a work in progress and is subject to change.
find_capability
(name_or_id, ignore_missing=True)¶Find a single capability
Parameters: |
|
---|---|
Returns: | One |
capabilities
(**query)¶Return a generator of capabilities
Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
---|---|
Returns: | A generator of capability objects |
Return type: | Capability |
The alarm high-level interface is available through the telemetry.alarm
member of a Connection
object. The
telemetry.alarm
member will only be added if the service is detected.
openstack.telemetry.alarm.v2._proxy.
Proxy
(session)¶Caution
This API is a work in progress and is subject to change.
create_alarm
(**attrs)¶Create a new alarm from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Alarm ,
comprised of the properties on the Alarm class. |
---|---|
Returns: | The results of alarm creation |
Return type: | Alarm |
update_alarm
(alarm, **attrs)¶Update a alarm
Parameters: | alarm – Either the id of a alarm or a
Alarm instance. |
---|---|
Attrs kwargs: | The attributes to update on the alarm represented
by value . |
Returns: | The updated alarm |
Return type: | Alarm |
delete_alarm
(alarm, ignore_missing=True)¶Delete an alarm
Parameters: |
|
---|---|
Returns: |
|
get_alarm
(alarm)¶Get a single alarm
Parameters: | alarm – The value can be the ID of an alarm or a
Alarm instance. |
---|---|
Returns: | One Alarm |
Raises: | ResourceNotFound
when no resource can be found. |
find_alarm
(name_or_id, ignore_missing=True)¶Find a single alarm
Parameters: |
|
---|---|
Returns: | One |
alarms
(**query)¶Return a generator of alarms
Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
---|---|
Returns: | A generator of alarm objects |
Return type: | Alarm |
openstack.telemetry.alarm.v2._proxy.
Proxy
(session)Caution
This API is a work in progress and is subject to change.
find_alarm_change
(name_or_id, ignore_missing=True)¶Find a single alarm change
Parameters: |
|
---|---|
Returns: | One |
alarm_changes
(alarm, **query)¶Return a generator of alarm changes
Parameters: |
|
---|---|
Returns: | A generator of alarm change objects |
Return type: |
|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.