ceilometer.event.models
Module¶Model classes for use in the events storage API.
ceilometer.event.models.
Event
(message_id, event_type, generated, traits, raw)[source]¶Bases: ceilometer.event.models.Model
A raw event from the source system. Events have Traits.
Metrics will be derived from one or more Events.
DUPLICATE
= 1¶INCOMPATIBLE_TRAIT
= 3¶UNKNOWN_PROBLEM
= 2¶ceilometer.event.models.
Model
(**kwds)[source]¶Bases: object
Base class for storage API models.
ceilometer.event.models.
Trait
(name, dtype, value)[source]¶Bases: ceilometer.event.models.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).
DATETIME_TYPE
= 4¶FLOAT_TYPE
= 3¶INT_TYPE
= 2¶NONE_TYPE
= 0¶TEXT_TYPE
= 1¶type_names
= {0: 'none', 1: 'string', 2: 'integer', 3: 'float', 4: 'datetime'}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.