MetricDefinitionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:metric_definitions> attribute.
Constructor
MetricDefinitionsOperations(*args, **kwargs)
Methods
| list |
Lists the metric definitions for the resource. |
| list_at_subscription_scope |
Lists the metric definitions for the subscription. |
list
Lists the metric definitions for the resource.
list(resource_uri: str, metricnamespace: str | None = None, **kwargs: Any) -> ItemPaged[MetricDefinition]
Parameters
| Name | Description |
|---|---|
|
resource_uri
Required
|
The identifier of the resource. Required. |
|
metricnamespace
|
Metric namespace where the metrics you want reside. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either MetricDefinition or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_at_subscription_scope
Lists the metric definitions for the subscription.
list_at_subscription_scope(region: str, metricnamespace: str | None = None, **kwargs: Any) -> ItemPaged[SubscriptionScopeMetricDefinition]
Parameters
| Name | Description |
|---|---|
|
region
Required
|
The region where the metrics you want reside. Required. |
|
metricnamespace
|
Metric namespace where the metrics you want reside. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either SubscriptionScopeMetricDefinition or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.monitor.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv181\\Lib\\site-packages\\azure\\mgmt\\monitor\\models\\__init__.py'>