The ceilometer.hardware.inspector.base ModuleΒΆ

Inspector abstraction for read-only access to hardware components

class ceilometer.hardware.inspector.base.Inspector[source]

Bases: object

inspect_generic(host, identifier, cache, extra_metadata=None)[source]

A generic inspect function.

Parameters:
  • host – the target host
  • identifier – the identifier of the metric
  • cache – cache passed from the pollster
  • extra_metadata – extra dict to be used as metadata
Returns:

an iterator of (value, metadata, extra)

Return value:

the sample value

Return metadata:
 

dict to construct sample’s metadata

Return extra:

dict of extra metadata to help constructing sample

Previous topic

The ceilometer.hardware.inspector.snmp Module

Next topic

The ceilometer.hardware.inspector Module

This Page