watcher.datasource.ceilometer
Modulewatcher.datasource.ceilometer
Module¶watcher.datasource.ceilometer.
CeilometerHelper
(osc=None)[source]¶Bases: object
build_query
(user_id=None, tenant_id=None, resource_id=None, user_ids=None, tenant_ids=None, resource_ids=None, start_time=None, end_time=None)[source]¶Returns query built from given parameters.
This query can be then used for querying resources, meters and statistics. :param user_id: user_id, has a priority over list of ids :param tenant_id: tenant_id, has a priority over list of ids :param resource_id: resource_id, has a priority over list of ids :param user_ids: list of user_ids :param tenant_ids: list of tenant_ids :param resource_ids: list of resource_ids :param start_time: datetime from which measurements should be collected :param end_time: datetime until which measurements should be collected
statistic_aggregation
(resource_id, meter_name, period, aggregate=’avg’)[source]¶Representing a statistic aggregate by operators
Parameters: |
|
---|---|
Returns: | Return the latest statistical data, None if no data. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.