Alert Rule Incidents - List By Alert Rule

Gets a list of incidents associated to an alert rule

GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents?api-version=2016-03-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

ruleName
path True

string

The name of the rule.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

IncidentListResult

Successful request for a list of alert rule related incidents

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List alert rule incidents

Sample Request

GET https://management.azure.com/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourcegroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName/incidents?api-version=2016-03-01

Sample Response

{
  "value": [
    {
      "name": "Website_started",
      "ruleName": "myRuleName",
      "isActive": true,
      "activatedTime": "2017-09-13T15:45:26.9792776Z",
      "resolvedTime": "2017-09-13T22:14:28.9792776Z"
    }
  ]
}

Definitions

Name Description
Incident

An alert incident indicates the activation status of an alert rule.

IncidentListResult

The List incidents operation response.

Incident

An alert incident indicates the activation status of an alert rule.

Name Type Description
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.

name

string

Incident name.

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.

IncidentListResult

The List incidents operation response.

Name Type Description
value

Incident[]

the incident collection.