panko.storage.pymongo_base
Module¶Common functions for MongoDB backend
None
Bases: panko.storage.base.Connection
Base event Connection class for MongoDB driver.
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.
Connection.
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.
event_type – the type of the Event.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.