The ceilometer.api.controllers.v2.query Module

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

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

Holds a sample query encoded in json.

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

Bases: pecan.rest.RestController

class ceilometer.api.controllers.v2.query.QuerySamplesController[source]

Bases: pecan.rest.RestController

Provides complex query possibilities for samples.

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

Define query for retrieving Sample data.

Parameters:body – Query rules for the samples to be returned.
class ceilometer.api.controllers.v2.query.ValidatedComplexQuery(query, db_model, additional_name_mapping=None, metadata_allowed=False)[source]

Bases: object

validate(visibility_field)[source]

Validates the query content and does the necessary conversions.

Previous topic

The ceilometer.api.controllers.v2.meters Module

Next topic

The ceilometer.api.controllers.v2.resources Module

Project Source

This Page