The ceilometer.sample Module

Sample class for holding data about a metering event.

A Sample doesn’t really do anything, but we need a way to ensure that all of the appropriate fields have been filled in by the plugins that create them.

class ceilometer.sample.Sample(name, type, unit, volume, user_id, project_id, resource_id, timestamp, resource_metadata, source=None, id=None)[source]

Bases: object

as_dict()[source]
classmethod from_notification(name, type, volume, unit, user_id, project_id, resource_id, message, timestamp=None, metadata=None, source=None)[source]

Previous topic

The ceilometer.publisher.utils Module

Next topic

The ceilometer.service Module

Project Source

This Page