The nova.objects.monitor_metric Module

class MonitorMetric(context=None, **kwargs)

Bases: nova.objects.base.NovaObject

VERSION = '1.1'
fields = {'numa_membw_values': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'timestamp': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'source': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': MonitorMetricType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=('cpu.frequency', 'cpu.user.time', 'cpu.kernel.time', 'cpu.idle.time', 'cpu.iowait.time', 'cpu.user.percent', 'cpu.kernel.percent', 'cpu.idle.percent', 'cpu.iowait.percent', 'cpu.percent', 'numa.membw.max', 'numa.membw.current')), 'value': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
name
numa_membw_values
obj_make_compatible(primitive, target_version)
source
timestamp
to_dict()
value
class MonitorMetricList(*args, **kwargs)

Bases: nova.objects.base.ObjectListBase, nova.objects.base.NovaObject

VERSION = '1.1'
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod from_json(metrics)

Converts a legacy json object into a list of MonitorMetric objs and finally returns of MonitorMetricList

Parameters:metrics – a string of json serialized objects
Returns:a MonitorMetricList Object.
objects
to_list()

Previous topic

The nova.objects.migration_context Module

Next topic

The nova.objects.network Module

Project Source

This Page