The ceilometer.api.controllers.v2.samples Module

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

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

One measurement.

classmethod from_db_model(m)[source]
classmethod sample()[source]
class ceilometer.api.controllers.v2.samples.SamplesController[source]

Bases: pecan.rest.RestController

Controller managing the samples.

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

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

Parameters:
  • q – Filter rules for the samples to be returned.
  • limit – Maximum number of samples to be returned.
get_one(*args, **kwargs)[source]

Return a sample.

Parameters:sample_id – the id of the sample.

Previous topic

The ceilometer.api.controllers.v2.root Module

Next topic

The ceilometer.api.controllers.v2.utils Module

Project Source

This Page