AlertRuleIncidentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:alert_rule_incidents> attribute.

Constructor

AlertRuleIncidentsOperations(*args, **kwargs)

Methods

get

Gets an incident associated to an alert rule.

list_by_alert_rule

Gets a list of incidents associated to an alert rule.

get

Gets an incident associated to an alert rule.

get(resource_group_name: str, rule_name: str, incident_name: str, **kwargs: Any) -> Incident

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.

incident_name
Required
str

The name of the incident to retrieve. Required.

Returns

Type Description

Incident or the result of cls(response)

Exceptions

Type Description

list_by_alert_rule

Gets a list of incidents associated to an alert rule.

list_by_alert_rule(resource_group_name: str, rule_name: str, **kwargs: Any) -> ItemPaged[Incident]

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.

Returns

Type Description

An iterator like instance of either Incident 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'>