#API - issue retrieving metric alert activations

2 messages · Page 1 of 1 (latest)

full locust
#

Hi Sentry friends, having some trouble with the API for metric alert activations (https://docs.sentry.io/api/alerts/retrieve-activations-for-a-metric-alert-rule/) . We haven't been able to retrieve any data for any of our alerts, whether we specify start and end or not, the response is always a 200 with an empty array [] body. Things seem to be working otherwise, we were able to get the team data from the example request in the docs.

Example of requests we've tried to make:

curl https://sentry.io/api/0/organizations/{org-id}/alert-rules/{alert-id}/activations/ -H "Authorization: Bearer <bear shaped token>"

curl https://sentry.io/api/0/organizations/{ord-id}/alert-rules/{alert-id}/activations/?start=2024-12-10T00:00:00.000Z&end=2024-12-10T19:10:15.422Z

Are we missing something with the request here? Or is there a different way we can/should request these alerts.

heady totem
#

i could reproduce the issue on my side
using the incidents endpoint I can see when my metric rule was triggered, but the activation field is empty even when the alert is currently in. "critical" status.
https://us.sentry.io/api/0/organizations/{ORG_SLUG}/incidents/?alertRule={RULE_ID}