MetricAlertsStatusOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:metric_alerts_status> attribute.

Inheritance
builtins.object
MetricAlertsStatusOperations

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
str

The name of the resource group. The name is case insensitive. Required.

rule_name
Required
str

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
str

The name of the resource group. The name is case insensitive. Required.

rule_name
Required
str

The name of the rule. Required.

status_name
Required
str

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'>