Base classes for storage engines
Bases: object
Base class for storage system connections.
Clear database.
Clear expired data from the backend storage system.
Clearing occurs according to the time-to-live.
Parameters: | ttl – Number of seconds to keep records for. |
---|
Return an dictionary with the capabilities of each driver.
Return all event types as an iterable of strings.
Return an iterable of model.Event objects.
Return an iterable of model.Statistics instances.
The filter must have a meter value set.
Return an iterable of model.Meter instances.
Iterable items containing meter information. :param user: Optional ID for user that owns the resource. :param project: Optional ID for project that owns the resource. :param resource: Optional resource filter. :param source: Optional source filter. :param metaquery: Optional dict with metadata to match on. :param pagination: Optional pagination query.
Return an iterable of models.Resource instances.
Iterable items containing resource information. :param user: Optional ID for user that owns the resource. :param project: Optional ID for project that owns the resource. :param source: Optional source filter. :param start_timestamp: Optional modified timestamp start range. :param start_timestamp_op: Optional timestamp start range operation. :param end_timestamp: Optional modified timestamp end range. :param end_timestamp_op: Optional timestamp end range operation. :param metaquery: Optional dict with metadata to match on. :param resource: Optional resource filter. :param pagination: Optional pagination query.
Return an iterable of model.Sample instances.
Parameters: |
|
---|
Return a dictionary representing the performance capabilities.
This is needed to evaluate the performance of each driver.
Return a dictionary containing the name and data type of the trait.
Only trait types for the provided event_type are returned. :param event_type: the type of the Event
Return all trait instances associated with an event_type.
If trait_type is specified, only return instances of that trait type. :param event_type: the type of the Event to filter by :param trait_type: the name of the Trait to filter by
Return an iterable of model.Sample objects.
Parameters: |
|
---|
Write the events to the backend storage system.
Parameters: | events – a list of model.Event objects. |
---|
Write the data to the backend storage system.
Parameters: | data – a dictionary such as returned by ceilometer.meter.meter_message_from_counter |
---|
All timestamps must be naive utc datetime object.
Migrate the database to version or the most recent version.
Bases: object
Base class for storage API models.
Bases: exceptions.Exception
Bases: exceptions.Exception
Bases: object
Class for pagination query.