Retrieve activations for a Metric Alert Rule
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)REQUIREDThe ID or slug of the organization the resource belongs to.
alert_rule_id
(integer)REQUIREDThe ID of the rule you'd like to query.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:alerts:read
org:admin
org:read
org:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/activations/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied[ { "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" } ]