The Module

The Module

Common functions for MongoDB backend

service None


Base event Connection class for MongoDB driver.


Return all event types as an iter of strings.

Connection.get_events(event_filter, pagination=None)[source]

Return an iter of models.Event objects.

  • event_filter – storage.EventFilter object, consists of filters for events that are stored in database.

  • pagination – Pagination parameters.


Return a dictionary containing the name and data type of the trait.

Only trait types for the provided event_type are returned.


event_type – the type of the Event.

Connection.get_traits(event_type, trait_name=None)[source]

Return all trait instances associated with an event_type.

If trait_type is specified, only return instances of that trait type.

  • event_type – the type of the Event to filter by

  • trait_name – the name of the Trait to filter by


Write the events to database.


event_models – a list of models.Event objects.

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.