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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

savedSearchId
string
required

ID of the saved search. If not provided, will use default saved search.

Body

application/json
type
enum<string>
required

Type of alert

Available options:
latency,
evalSet
details
object
required

Response

200
application/json
Alert created successfully
success
boolean
required
alert
object
required