Retrieve alert history for an authenticated account
Description
This route lets you retrieve past alerts for an authenticated account based on various filter parameters. You can specify a set of metric alert IDs, a user ID, a subscription ID, and a time range to narrow the search. The response includes a paginated list of metric alerts matching the criteria, sorted from the most recent to the latest.
Endpoint
GEThttps://sentry.aleno.ai/alertHistory
Query parameters
Name
Required
Type
Description
ids
Optional
string list
IDs of target alerts. If none are provided, the filter is not applied.
userId
Optional
string
ID of the user to retrieve
subscriptionId
Optional
string
ID of the subscription for which to retrieve alerts.
fromDate
Optional
date
toDate
Optional
date
pageSize
Optional
number
The number of items to return per page. Maximum of 100.
page
Optional
number
The page number to retrieve.
Payload
No payload.
CURL example
curl -X GET \
'https://sentry.aleno.ai/alertHistory' \
-H 'Authorization: YOUR_API_KEY'
Result
Returns a list of Alert objects representing historical alerts received by the account. Alerts are sorted from the most recent to the latest one considering the sendTimestamp field.