ceilometer.tests.unit.hardware.pollsters.test_generic
Module¶ceilometer.tests.unit.hardware.pollsters.test_generic.
FakeInspector
[source]¶Bases: ceilometer.hardware.inspector.base.Inspector
DATA
= {'test': (0.99, {}, {}), 'test2': (90, {'ip': '10.0.0.2', 'mac': '001122334455', 'speed': 1000, 'name': 'test.teest'}, {})}¶inspect_generic
(host, cache, extra_metadata=None, param=None)[source]¶A generic inspect function.
Parameters: |
|
---|---|
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 |
net_metadata
= {'ip': '10.0.0.2', 'mac': '001122334455', 'name': 'test.teest', 'speed': 1000}¶ceilometer.tests.unit.hardware.pollsters.test_generic.
TestGenericPollsters
(*args, **kwds)[source]¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.