post https://core-api.ternary.app/api/alert-rules
Create a new alert rule
Responses
Create a new alert rule
xxxxxxxxxx
18curl --request POST \
--url https://core-api.ternary.app/api/alert-rules \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"condition": {
"type": "ANOMALY_DETECTION",
"direction": "DEFAULT"
},
"dataSource": "ALERT_EVENTS",
"subscribers": {
"includeAllUsers": true
},
"status": "ACTIVE",
"timeGranularity": "DAY"
}
'
Try It!
to start a request and see the response here! Or choose an example: