The gnocchiclient.v1.aggregates Module

class gnocchiclient.v1.aggregates.AggregatesManager(client)

Bases: gnocchiclient.v1.base.Manager

fetch(operations, search=None, resource_type='generic', start=None, stop=None, granularity=None, needed_overlap=None, groupby=None, fill=None, details=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

See Gnocchi REST API documentation for the format of query dictionary http://docs.openstack.org/developer/gnocchi/rest.html#aggregates