The ceilometer.storage.models Module

Model classes for use in the storage API.

class ceilometer.storage.models.Meter(name, type, unit, resource_id, project_id, source, user_id)[source]

Bases: ceilometer.storage.base.Model

Definition of a meter for which sample data has been collected.

class ceilometer.storage.models.Resource(resource_id, project_id, first_sample_timestamp, last_sample_timestamp, source, user_id, metadata)[source]

Bases: ceilometer.storage.base.Model

Something for which sample data has been collected.

class ceilometer.storage.models.Sample(source, counter_name, counter_type, counter_unit, counter_volume, user_id, project_id, resource_id, timestamp, resource_metadata, message_id, message_signature, recorded_at)[source]

Bases: ceilometer.storage.base.Model

One collected data point.

class ceilometer.storage.models.Statistics(unit, period, period_start, period_end, duration, duration_start, duration_end, groupby, **data)[source]

Bases: ceilometer.storage.base.Model

Computed statistics based on a set of sample data.

Project Source

This Page