cURL
curl --request POST \ --url https://api.artosai.com/alerts/rules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "rule_type": "<string>", "conditions": {}, "notification": {}, "description": "<string>", "enabled": true } '
{ "rule_id": "<string>", "name": "<string>", "description": "<string>", "rule_type": "<string>", "conditions": {}, "notification": {}, "enabled": true, "created_at": "2023-11-07T05:31:56Z", "last_triggered": "2023-11-07T05:31:56Z" }
Defines a new alert rule to monitor usage, latency, error rates or system health.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Alert rule created
Configuration for an alert rule.