AlertRuleIncidentsOperations Class
AlertRuleIncidentsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectAlertRuleIncidentsOperations
Constructor
AlertRuleIncidentsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
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.
async get(resource_group_name: str, rule_name: str, incident_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2016_03_01.models._models_py3.Incident
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Incident, or the result of cls(response)
Return type
Exceptions
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) -> AsyncIterable[azure.mgmt.monitor.v2016_03_01.models._models_py3.IncidentListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either IncidentListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.monitor.v2016_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2016_03_01\\models\\__init__.py'>
Feedback
Submit and view feedback for