The nova.compute.monitors.base Module

class CPUMonitorBase(compute_manager)

Bases: nova.compute.monitors.base.MonitorBase

Base class for all monitors that return CPU-related metrics.

get_metric_names()
class MonitorBase(compute_manager)

Bases: object

Base class for all resource monitor plugins.

add_metrics_to_list(metrics_list)

Adds metric objects to a supplied list object.

Parameters:metric_list – nova.objects.MonitorMetricList that the monitor plugin should append nova.objects.MonitorMetric objects to.
get_metric(name)

Return a (value, timestamp) tuple for the supplied metric name.

Parameters:name – The name/key for the metric to grab the value for.
get_metric_names()

Get available metric names.

Get available metric names, which are represented by a set of keys that can be used to check conflicts and duplications

Returns:set containing one or more values from :py:attr: nova.objects.fields.MonitorMetricType.ALL

Previous topic

The nova.compute.manager Module

Next topic

The nova.compute.monitors.cpu.virt_driver Module

Project Source

This Page