The ceilometer.publisher.test Module

The ceilometer.publisher.test Module

Publish a sample in memory, useful for testing

class ceilometer.publisher.test.TestPublisher(conf, parsed_url)[source]

Bases: ceilometer.publisher.ConfigPublisherBase

Publisher used in unit testing.

publish_events(events)[source]

Send an event message for publishing

Parameters:events – events from pipeline after transformation
publish_samples(samples)[source]

Send a metering message for publishing

Parameters:samples – Samples from pipeline after transformation
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.