curl --request PUT \
--url https://api.fixa.dev/v1/alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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>"
}'
{
"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>"
}
}
update an alert
curl --request PUT \
--url https://api.fixa.dev/v1/alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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>"
}'
{
"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>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Alert updated successfully
The response is of type object
.