Retrieve activations for an AlertRule

GET /api/0/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/activations/

Return a list of activations for a metric alert rule.

An activation represents a single instance of an activated alert rule being triggered. It contains a date_added field which represents the time the alert was triggered. Activations can be filtered by start and end parameters to return activations with date_added that falls within the specified time window.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The id or slug of the organization the resource belongs to.

alert_rule_id (integer)
REQUIRED

The ID of the rule you'd like to query.

Scopes

<auth_token> requires one of the following scopes:
  • alert_rule:read
  • alerts:read
  • org:admin
  • org:read
  • org:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/activations/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
[
  {
    "id": "1",
    "alertRuleId": "1",
    "dateCreated": "2023-09-25T23:35:31.787875Z",
    "finishedAt": "2023-09-25T23:35:31.787866Z",
    "metricValue": 100,
    "querySubscriptionId": "1",
    "isComplete": true,
    "activator": "1",
    "conditionType": "0"
  }
]