The watcher.datasource.gnocchi Module

class watcher.datasource.gnocchi.GnocchiHelper(osc=None)[source]

Bases: object

query_retry(f, *args, **kwargs)[source]
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 accordance with policy aggregations
Returns:

value of aggregated metric

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.