nova/nova/tests/unit/compute/monitors
Sudipta Biswas 2a53063679 Allow monitor plugins to set own metric object
The values reported by a monitor depends on the type of value which
will not be uniform for all the monitors. For example, the memory
bandwidth monitor will return a dict of ints while the cpu monitor
returns a normal int value. The monitor metric objects offer
different fields to be set depending on the monitor in question.

This patchset allows the monitors to decide what metric field
it would like to populate as over a general implementation of
creating the monitor metric object inside the base module.
This would also help in exchanging versioned objects between
the monitors and the compute drivers.

Eventually this work will lead up to making the metrics.update
notification as versioned.

Related to blueprint memory-bw
Co-Authored-By: Ahilan Rajadeva <rajadeva@us.ibm.com>

Change-Id: Ieaf3d44bbe73e71ad877199bbbc779afa4218b51
2016-06-27 14:38:32 +05:30
..
cpu Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_monitors.py Allow compute monitors in different namespaces 2015-08-20 15:07:24 -04:00