ceilometer.ipmi.notifications.ironic
Module¶Converters for producing hardware sensor data sample messages from notification events.
ceilometer.ipmi.notifications.ironic.
CurrentSensorNotification
(conf, publisher)[source]¶Bases: ceilometer.ipmi.notifications.ironic.SensorNotification
metric
= 'Current'¶ceilometer.ipmi.notifications.ironic.
FanSensorNotification
(conf, publisher)[source]¶Bases: ceilometer.ipmi.notifications.ironic.SensorNotification
metric
= 'Fan'¶ceilometer.ipmi.notifications.ironic.
InvalidSensorData
[source]¶Bases: exceptions.ValueError
ceilometer.ipmi.notifications.ironic.
SensorNotification
(conf, publisher)[source]¶Bases: ceilometer.pipeline.sample.SampleEndpoint
A generic class for extracting samples from sensor data notifications.
A notification message can contain multiple samples from multiple sensors, all with the same basic structure: the volume for the sample is found as part of the value of a ‘Sensor Reading’ key. The unit is in the same value.
Subclasses exist solely to allow flexibility with stevedore configuration.
build_sample
(message)[source]¶Read and process a notification.
The guts of a message are in dict value of a ‘payload’ key which then itself has a payload key containing a dict of multiple sensor readings.
If expected keys in the payload are missing or values are not in the expected form for transformations, KeyError and ValueError are caught and the current sensor payload is skipped.
event_types
= ['hardware.ipmi.*']¶metric
= None¶ceilometer.ipmi.notifications.ironic.
TemperatureSensorNotification
(conf, publisher)[source]¶Bases: ceilometer.ipmi.notifications.ironic.SensorNotification
metric
= 'Temperature'¶ceilometer.ipmi.notifications.ironic.
VoltageSensorNotification
(conf, publisher)[source]¶Bases: ceilometer.ipmi.notifications.ironic.SensorNotification
metric
= 'Voltage'¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.