The watcher.datasource.gnocchi
Module¶
-
class
watcher.datasource.gnocchi.
GnocchiHelper
(osc=None)[source]¶ Bases:
object
-
statistic_aggregation
(resource_id, metric, granularity, start_time=None, stop_time=None, aggregation='mean')[source]¶ Representing a statistic aggregate by operators
Parameters: - metric – metric name of which we want the statistics
- resource_id – id of resource to list statistics for
- start_time – Start datetime from which metrics will be used
- stop_time – End datetime from which metrics will be used
- granularity – frequency of marking metric point, in seconds
- aggregation – Should be chosen in accrodance with policy aggregations
Returns: value of aggregated metric
-