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, cache, extra_metadata, param)[source]

A generic inspect function.

Parameters:
  • host – the target host
  • cache – cache passed from the pollster
  • extra_metadata – extra dict to be used as metadata
  • param – a dict of inspector specific param
Returns:

an iterator of (value, metadata, extra) containing the sample value, metadata dict to construct sample’s metadata, and extra dict of extra metadata to help constructing sample

prepare_params(param)[source]

Parse the params to a format which the inspector itself recognizes.

Parameters:param – inspector params from meter definition file
Returns:a dict of param which the inspector recognized

Project Source

This Page