alerts
create alert
get started
evaluations
- templates
- evaluations
- groups
alerts
create alert
create an alert
POST
/
alerts
/
{savedSearchId}
curl --request POST \
--url https://api.fixa.dev/v1/alerts/{savedSearchId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "latency",
"details": {
"lookbackPeriod": {
"label": "<string>",
"value": 123
},
"cooldownPeriod": {
"label": "<string>",
"value": 123
},
"lastAlerted": "2023-11-07T05:31:56Z",
"percentile": "p50",
"threshold": 123
}
}'
{
"success": true,
"alert": {
"id": "<string>",
"type": "latency",
"details": {
"lookbackPeriod": {
"label": "<string>",
"value": 123
},
"cooldownPeriod": {
"label": "<string>",
"value": 123
},
"lastAlerted": "2023-11-07T05:31:56Z",
"percentile": "p50",
"threshold": 123
},
"savedSearchId": "<string>",
"slackNames": [],
"ownerId": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the saved search. If not provided, will use default saved search.
Body
application/json
Type of alert
Available options:
latency
, evalSet
Last time this alert was triggered
Percentile threshold for latency
Available options:
p50
, p90
, p95
Latency threshold in milliseconds
Response
200
application/json
Alert created successfully
Unique identifier for the alert
Available options:
latency
, evalSet
Last time this alert was triggered
Percentile threshold for latency
Available options:
p50
, p90
, p95
Latency threshold in milliseconds
ID of the associated saved search
Slack usernames to notify
ID of the alert owner
curl --request POST \
--url https://api.fixa.dev/v1/alerts/{savedSearchId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "latency",
"details": {
"lookbackPeriod": {
"label": "<string>",
"value": 123
},
"cooldownPeriod": {
"label": "<string>",
"value": 123
},
"lastAlerted": "2023-11-07T05:31:56Z",
"percentile": "p50",
"threshold": 123
}
}'
{
"success": true,
"alert": {
"id": "<string>",
"type": "latency",
"details": {
"lookbackPeriod": {
"label": "<string>",
"value": 123
},
"cooldownPeriod": {
"label": "<string>",
"value": 123
},
"lastAlerted": "2023-11-07T05:31:56Z",
"percentile": "p50",
"threshold": 123
},
"savedSearchId": "<string>",
"slackNames": [],
"ownerId": "<string>"
}
}