The watcher.datasource.monasca
Module¶
-
class
watcher.datasource.monasca.
MonascaHelper
(osc=None)[source]¶ Bases:
object
-
statistic_aggregation
(meter_name, dimensions, start_time=None, end_time=None, period=None, aggregate='avg', group_by='*')[source]¶ Representing a statistic aggregate by operators
Parameters: - meter_name – meter names of which we want the statistics
- dimensions – dimensions (dict)
- start_time – Start datetime from which metrics will be used
- end_time – End datetime from which metrics will be used
- period – Sampling period: In seconds. If no period is given, only one aggregate statistic is returned. If given, a faceted result will be returned, divided into given periods. Periods with no data are ignored.
- aggregate – Should be either ‘avg’, ‘count’, ‘min’ or ‘max’
Returns: A list of dict with each dict being a distinct result row
-