The gnocchiclient.v1.aggregates
Module¶
- class gnocchiclient.v1.aggregates.AggregatesManager(client)¶
Bases:
Manager
- fetch(operations, search=None, resource_type='generic', start=None, stop=None, granularity=None, needed_overlap=None, groupby=None, fill=None, details=False, use_history=False)¶
Get measurements of an aggregated metrics.
- Parameters:
operations (list or str) – operations
start (timestamp) – beginning of the period
stop (timestamp) – end of the period
granularity (int) – granularity to retrieve (in seconds)
needed_overlap (float) – percent of datapoints in each metrics required
groupby (list) – list of attribute to group by
fill (float or 'null') – value to use when backfilling missing datapoints
details (boolean) – also returns the list of metrics or resources associated to the operations
use_history (boolean) – indicates if Gnocchi server must include in the response the tag history for resources. The default value is False.
See Gnocchi REST API documentation for the format of query dictionary http://docs.openstack.org/developer/gnocchi/rest.html#aggregates