Metric Class

A set of metric values in a time range.

All required parameters must be populated in order to send to Azure.

Inheritance
Metric

Constructor

Metric(*, name: azure.mgmt.monitor.v2016_09_01.models._models_py3.LocalizableString, unit: Union[str, azure.mgmt.monitor.v2016_09_01.models._monitor_management_client_enums.Unit], data: List[azure.mgmt.monitor.v2016_09_01.models._models_py3.MetricValue], id: Optional[str] = None, type: Optional[str] = None, **kwargs)

Variables

id
str

the id, resourceId, of the metric.

type
str

the resource type of the metric resource.

name
<xref:$>(<xref:python-base-namespace>)LocalizableString

Required. the name and the display name of the metric, i.e. it is localizable string.

unit
str or <xref:$>(<xref:python-base-namespace>)Unit

Required. the unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "CountPerSecond", "BytesPerSecond", "Percent", "MilliSeconds", "ByteSeconds", "Unspecified", "Cores", "MilliCores", "NanoCores", "BitsPerSecond".

data
list[<xref:$>(<xref:python-base-namespace>)MetricValue]

Required. Array of data points representing the metric values.