The panko.storage.models Module

The panko.storage.models Module

Model classes for use in the events storage API.

service None

Bases: panko.storage.base.Model

A raw event from the source system. Events have Traits.

Metrics will be derived from one or more Events.

Event.append_trait(trait_model)
Event.serialize()
service None

Bases: panko.storage.base.Model

A Trait is a key/value pair of data on an Event.

The value is variant record of basic data types (int, date, float, etc).

classmethod Trait.convert_value(trait_type, value)[source]
classmethod Trait.get_name_by_type(type_id)[source]
classmethod Trait.get_type_by_name(type_name)[source]
Trait.get_type_name()[source]
classmethod Trait.get_type_names()[source]
Trait.serialize()[source]
@panko.storage.models.serialize_dt[source]

Serializes parameter if it is datetime.

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.