The ceilometer.event.storage.impl_hbase
ModuleΒΆ
-
class
ceilometer.event.storage.impl_hbase.
Connection
(url)[source] Bases:
ceilometer.storage.hbase.base.Connection
,ceilometer.event.storage.base.Connection
Put the event data into a HBase database
Collections:
events:
row_key: timestamp of event’s generation + uuid of event in format: “%s:%s” % (ts, Event.message_id)
Column Families:
f: contains the following qualifiers:
event_type: description of event’s type
timestamp: time stamp of event generation
all traits for this event in format:
"%s:%s" % (trait_name, trait_type)
-
clear
()[source]
-
get_event_types
()[source] Return all event types as an iterable of strings.
-
get_events
(event_filter)[source] Return an iter of models.Event objects.
Parameters: event_filter – storage.EventFilter object, consists of filters for events that are stored in database.
-
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
-
get_traits
(event_type, trait_type=None)[source] Return all trait instances associated with an event_type.
If trait_type is specified, only return instances of that trait type. :param event_type: the type of the Event to filter by :param trait_type: the name of the Trait to filter by
-
record_events
(event_models)[source] Write the events to Hbase.
Parameters: event_models – a list of models.Event objects. Return problem_events: a list of events that could not be saved in a (reason, event) tuple. From the reasons that are enumerated in storage.models.Event only the UNKNOWN_PROBLEM is applicable here.
-
upgrade
()[source]