MetricDefinitionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:metric_definitions> attribute.

Inheritance
builtins.object
MetricDefinitionsOperations

Constructor

MetricDefinitionsOperations(*args, **kwargs)

Methods

list

Lists the metric definitions for the resource.

list

Lists the metric definitions for the resource.

list(resource_uri: str, filter: str | None = None, **kwargs: Any) -> Iterable[MetricDefinition]

Parameters

Name Description
resource_uri
Required
str

The identifier of the resource. Required.

filter
Required
str

Reduces the set of data collected by retrieving particular metric definitions from all the definitions available for the resource.:code:
For example, to get just the definition for the 'CPU percentage' counter: $filter=name.value eq 'Processor(_Total)% Processor Time'.:code:
Multiple metrics can be retrieved by joining together *'name eq :code:
'* clauses separated by or logical operators.:code:*
*NOTE: No other syntax is allowed. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either MetricDefinition or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.v2016_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2016_03_01\\models\\__init__.py'>