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)[source]
Bases: object
-
Sample.as_dict()[source]
-
classmethod Sample.from_notification(name, type, volume, unit, user_id, project_id, resource_id, message, source=None)[source]