MetricAlertsStatusOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:metric_alerts_status> attribute.
- Inheritance
-
builtins.objectMetricAlertsStatusOperations
Constructor
MetricAlertsStatusOperations(*args, **kwargs)
Methods
list |
Retrieve an alert rule status. |
list_by_name |
Retrieve an alert rule status. |
list
Retrieve an alert rule status.
list(resource_group_name: str, rule_name: str, **kwargs: Any) -> MetricAlertStatusCollection
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
rule_name
Required
|
The name of the rule. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
MetricAlertStatusCollection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_name
Retrieve an alert rule status.
list_by_name(resource_group_name: str, rule_name: str, status_name: str, **kwargs: Any) -> MetricAlertStatusCollection
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
rule_name
Required
|
The name of the rule. Required. |
status_name
Required
|
The name of the status. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
MetricAlertStatusCollection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.monitor.v2018_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2018_03_01\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for