alert_rule_incidents
Creates, updates, deletes, gets or lists a alert_rule_incidents
resource.
Overview
Name | alert_rule_incidents |
Type | Resource |
Id | azure.monitor.alert_rule_incidents |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Incident name. |
activatedTime | string | The time at which the incident was activated in ISO8601 format. |
isActive | boolean | A boolean to indicate whether the incident is active or resolved. |
resolvedTime | string | The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. |
ruleName | string | Rule name that is associated with the incident. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | incidentName, resourceGroupName, ruleName, subscriptionId | Gets an incident associated to an alert rule |
list_by_alert_rule | SELECT | resourceGroupName, ruleName, subscriptionId | Gets a list of incidents associated to an alert rule |
SELECT
examples
Gets a list of incidents associated to an alert rule
SELECT
name,
activatedTime,
isActive,
resolvedTime,
ruleName
FROM azure.monitor.alert_rule_incidents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND ruleName = '{{ ruleName }}'
AND subscriptionId = '{{ subscriptionId }}';