MetricDefinitionsOperations Class

MetricDefinitionsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
MetricDefinitionsOperations

Constructor

MetricDefinitionsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

list

Lists the metric definitions for the resource.

list

Lists the metric definitions for the resource.

list(resource_uri: str, filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2015_07_01.models._models_py3.MetricDefinitionCollection]

Parameters

resource_uri
str
Required

The identifier of the resource.

filter
str
Required

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.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)MetricDefinitionCollection]

Exceptions

Attributes

models

models = <module 'azure.mgmt.monitor.v2015_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2015_07_01\\models\\__init__.py'>