The ceilometer.api.controllers.v2.meters Module

class ceilometer.api.controllers.v2.meters.Aggregate(**kwargs)[source]

Bases: ceilometer.api.controllers.v2.base.Base

classmethod sample()[source]
static validate(aggregate)[source]
class ceilometer.api.controllers.v2.meters.Meter(**kwargs)[source]

Bases: ceilometer.api.controllers.v2.base.Base

One category of measurements.

classmethod sample()[source]
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.

get_all(*args, **kwargs)[source]

Return all known meters, based on the data recorded so far.

Parameters:
  • q – Filter rules for the meters to be returned.
  • unique – flag to indicate unique meters to be returned.
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.

classmethod sample()[source]
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.

classmethod sample()[source]

Previous topic

The ceilometer.api.controllers.v2.events Module

Next topic

The ceilometer.api.controllers.v2.query Module

Project Source

This Page