The ceilometer.ipmi.notifications.ironic Module

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

class ceilometer.ipmi.notifications.ironic.CurrentSensorNotification(manager)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

class ceilometer.ipmi.notifications.ironic.FanSensorNotification(manager)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

exception ceilometer.ipmi.notifications.ironic.InvalidSensorData[source]

Bases: exceptions.ValueError

class ceilometer.ipmi.notifications.ironic.SensorNotification(manager)[source]

Bases: ceilometer.agent.plugin_base.NotificationBase

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.

get_targets(conf)[source]

oslo.messaging.TargetS for this plugin.

process_notification(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.

class ceilometer.ipmi.notifications.ironic.TemperatureSensorNotification(manager)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

class ceilometer.ipmi.notifications.ironic.VoltageSensorNotification(manager)[source]

Bases: ceilometer.ipmi.notifications.ironic.SensorNotification

Previous topic

The ceilometer.image.glance Module

Next topic

The ceilometer.ipmi.platform.exception Module

Project Source

This Page