The ceilometer.api.controllers.v2.meters
Module¶
-
class
ceilometer.api.controllers.v2.meters.
Meter
(**kwargs)[source]¶ Bases:
ceilometer.api.controllers.v2.base.Base
One category of measurements.
-
class
ceilometer.api.controllers.v2.meters.
MeterController
(meter_name)[source]¶ Bases:
pecan.rest.RestController
Manages operations on a single meter.
-
get_all
(*args, **kwargs)[source]¶ Return samples for the meter.
Parameters: - q – Filter rules for the data to be returned.
- limit – Maximum number of samples to return.
-
post
(*args, **kwargs)[source]¶ Post a list of new Samples to Telemetry.
Parameters: - direct – a flag indicates whether the samples will be posted directly to storage or not.
- samples – a list of samples within the request body.
-
statistics
(*args, **kwargs)[source]¶ Computes the statistics of the samples in the time range given.
Parameters: - q – Filter rules for the data to be returned.
- groupby – Fields for group by aggregation
- period – Returned result will be an array of statistics for a period long of that number of seconds.
- aggregate – The selectable aggregation functions to be applied.
-
-
class
ceilometer.api.controllers.v2.meters.
MetersController
[source]¶ Bases:
pecan.rest.RestController
Works on meters.
-
class
ceilometer.api.controllers.v2.meters.
OldSample
(counter_volume=None, resource_metadata=None, timestamp=None, **kwds)[source]¶ Bases:
ceilometer.api.controllers.v2.base.Base
A single measurement for a given meter and resource.
This class is deprecated in favor of Sample.
-
class
ceilometer.api.controllers.v2.meters.
Statistics
(start_timestamp=None, end_timestamp=None, **kwds)[source]¶ Bases:
ceilometer.api.controllers.v2.base.Base
Computed statistics for a query.