Metric Class

The result data of a query.

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

Inheritance
Metric

Constructor

Metric(*, id: str, type: str, name: azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.LocalizableString, unit: Union[str, azure.mgmt.monitor.v2017_05_01_preview.models._monitor_management_client_enums.Unit], timeseries: List[azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.TimeSeriesElement], display_description: Optional[str] = None, error_code: Optional[str] = None, error_message: Optional[str] = None, **kwargs)

Variables

id
str

Required. the metric Id.

type
str

Required. 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.

display_description
str

Detailed description of this metric.

error_code
str

'Success' or the error details on query failures for this metric.

error_message
str

Error message encountered querying this specific metric.

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".

timeseries
list[<xref:$>(<xref:python-base-namespace>)TimeSeriesElement]

Required. the time series returned when a data query is performed.