The ceilometer.ipmi.notifications.ironic Module

The ceilometer.ipmi.notifications.ironic Module

Converters for producing hardware sensor data sample messages from notification events.

class ceilometer.ipmi.notifications.ironic.CurrentSensorNotification(conf, publisher)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

metric = 'Current'
class ceilometer.ipmi.notifications.ironic.FanSensorNotification(conf, publisher)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

metric = 'Fan'
exception ceilometer.ipmi.notifications.ironic.InvalidSensorData[source]

Bases: exceptions.ValueError

class 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
class ceilometer.ipmi.notifications.ironic.TemperatureSensorNotification(conf, publisher)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

metric = 'Temperature'
class ceilometer.ipmi.notifications.ironic.VoltageSensorNotification(conf, publisher)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

metric = 'Voltage'
ceilometer.ipmi.notifications.ironic.parse_reading(data)[source]
ceilometer.ipmi.notifications.ironic.transform_id(data)[source]
ceilometer.ipmi.notifications.ironic.validate_reading(data)[source]

Some sensors read “Disabled”.

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.