AlertRuleIncidentsOperations Class

Varning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:alert_rule_incidents> attribute.

Constructor

Python
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.

Python
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.

Keyword-Only Parameters

Name Description
cls

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

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.

Python
list_by_alert_rule(resource_group_name: str, rule_name: str, **kwargs: Any) -> Iterable[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.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

Python
models = <module 'azure.mgmt.monitor.v2016_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv164\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2016_03_01\\models\\__init__.py'>