The ceilometer.event.storage.pymongo_base
Module¶
Common functions for MongoDB and DB2 backends
-
class
ceilometer.event.storage.pymongo_base.
Connection
(url)[source]¶ Bases:
ceilometer.event.storage.base.Connection
Base event Connection class for MongoDB and DB2 drivers.
-
get_events
(event_filter, limit=None)[source]¶ Return an iter of models.Event objects.
Parameters: - event_filter – storage.EventFilter object, consists of filters for events that are stored in database.
- limit – Maximum number of results to return.
-
get_trait_types
(event_type)[source]¶ Return a dictionary containing the name and data type of the trait.
Only trait types for the provided event_type are returned.
Parameters: event_type – the type of the Event.
-