The ceilometer.sample Module

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=None, resource_metadata=None, source=None, id=None, monotonic_time=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]
get_iso_timestamp()[source]
set_timestamp(timestamp)[source]
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.