AlertRuleIncidentsOperations Class
Varning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:alert_rule_incidents> attribute.
Constructor
AlertRuleIncidentsOperations(*args, **kwargs)
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
|
The name of the resource group. The name is case insensitive. Required. |
rule_name
Required
|
The name of the rule. Required. |
incident_name
Required
|
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.
list_by_alert_rule(resource_group_name: str, rule_name: str, **kwargs: Any) -> Iterable[Incident]
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 |
---|---|
An iterator like instance of either Incident or the result of cls(response) |
Exceptions
Type | Description |
---|---|
models
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'>
Feedback om Azure SDK for Python
Azure SDK for Python är ett öppen källkod projekt. Välj en länk för att ge feedback: