alert_rule_incidents
Creates, updates, deletes, gets or lists an alert_rule_incidents resource.
Overview
| Name | alert_rule_incidents |
| Type | Resource |
| Id | azure.monitor.alert_rule_incidents |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_alert_rule
| Name | Datatype | Description |
|---|---|---|
name | string | Incident name. |
activatedTime | string (date-time) | 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 (date-time) | 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. |
| Name | Datatype | Description |
|---|---|---|
name | string | Incident name. |
activatedTime | string (date-time) | 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 (date-time) | 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
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, rule_name, incident_name, subscription_id | Gets an incident associated to an alert rule. | |
list_by_alert_rule | select | resource_group_name, rule_name, subscription_id | Gets a list of incidents associated to an alert rule. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
incident_name | string | The name of the incident to retrieve. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
rule_name | string | The name of the rule. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_alert_rule
Gets an incident associated to an alert rule.
SELECT
name,
activatedTime,
isActive,
resolvedTime,
ruleName
FROM azure.monitor.alert_rule_incidents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND incident_name = '{{ incident_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets a list of incidents associated to an alert rule.
SELECT
name,
activatedTime,
isActive,
resolvedTime,
ruleName
FROM azure.monitor.alert_rule_incidents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;