cURL
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>" } }
create an alert
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the saved search. If not provided, will use default saved search.
Alert created successfully
The response is of type object.
object