Skip to main content
POST
/
core
/
alerts
/
rules
Create alert rule
curl --request POST \
  --url https://acusight.io/api/core/alerts/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "class": "<string>",
  "comparison": "<string>",
  "description": "<string>",
  "device_ids": [
    "<string>"
  ],
  "duration": "<string>",
  "metric": "<string>",
  "model_id": "<string>",
  "name": "<string>",
  "severity": "<string>",
  "threshold": 123,
  "window": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

JWT access token. Paste the token only; the Bearer prefix is added automatically.

Body

application/json

Alert rule definition

class
string
comparison
string
description
string
device_ids
string[]
duration
string
metric
string
model_id
string

required

name
string
severity
string
threshold
number
window
string

Response

Alert rule created

The response is of type object.