The ceilometer.hardware.plugin ModuleΒΆ

Base class for plugins used by the hardware agent.

class ceilometer.hardware.plugin.HardwarePollster[source]

Bases: ceilometer.central.plugin.CentralPollster

Base class for plugins that support the polling API.

HardwarePollster.generate_one_sample(host_url, c_data)[source]

Return one Sample.

Parameters:
  • host_url – host url of the endpoint
  • c_data – data returned by the inspector.inspect_generic, tuple of (value, metadata, extra)
HardwarePollster.generate_samples(host_url, data)[source]

Generate an iterable Sample from the data returned by inspector

Parameters:
  • host_url – host url of the endpoint
  • data – list of data returned by the corresponding inspector
HardwarePollster.get_samples(manager, cache, resources=None)[source]

Return an iterable of Sample instances from polling the resources.

Parameters:
  • manager – The service manager invoking the plugin
  • cache – A dictionary for passing data between plugins
  • resources – end point to poll data from

Previous topic

The ceilometer.storage.sqlalchemy.migrate_repo.versions.029_sample_recorded_at Module

Next topic

The ceilometer.hardware Module

This Page