The ceilometer.api.controllers.v2 Module

Version 2 of the API.

class ceilometer.api.controllers.v2.Meter(**kw)[source]

Bases: wsme.types.Base

One category of measurements.

classmethod sample()[source]
class ceilometer.api.controllers.v2.MeterController(meter_id)[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.
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.
  • period – Returned result will be an array of statistics for a period long of that number of seconds.
class ceilometer.api.controllers.v2.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.
class ceilometer.api.controllers.v2.Query(**kw)[source]

Bases: wsme.types.Base

Query filter.

get_op()[source]
classmethod sample()[source]
set_op(value)[source]
class ceilometer.api.controllers.v2.Resource(metadata={}, **kwds)[source]

Bases: wsme.types.Base

An externally defined object for which samples have been received.

classmethod sample()[source]
class ceilometer.api.controllers.v2.ResourcesController[source]

Bases: pecan.rest.RestController

Works on resources.

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

Retrieve definitions of all of the resources.

Parameters:q – Filter rules for the resources to be returned.
get_one(*args, **kwargs)[source]

Retrieve details about one resource.

Parameters:resource_id – The UUID of the resource.
class ceilometer.api.controllers.v2.Sample(counter_volume=None, resource_metadata={}, **kwds)[source]

Bases: wsme.types.Base

A single measurement for a given meter and resource.

classmethod sample()[source]
class ceilometer.api.controllers.v2.Statistics(start_timestamp=None, end_timestamp=None, **kwds)[source]

Bases: wsme.types.Base

Computed statistics for a query.

classmethod sample()[source]
class ceilometer.api.controllers.v2.V2Controller[source]

Bases: object

Version 2 API controller root.

Previous topic

The ceilometer.api.controllers.root Module

Next topic

The ceilometer.api.hooks Module

This Page