The ceilometer.hardware.plugin
ModuleΒΆ
Base class for plugins used by the hardware agent.
-
class
ceilometer.hardware.plugin.
HardwarePollster
[source] Bases:
ceilometer.agent.plugin_base.PollsterBase
Base class for plugins that support the polling API.
-
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)
-
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
-
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
-