The ceilometer.api.controllers.v2.query Module

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.