cURL
curl --request PATCH \ --url https://api.poly.ai/v1/alert-rules/{rule_id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "data": { "type": "alert-rules", "id": "00aa00aa-bb11-cc22-dd33-eeeeeeeeeeee", "attributes": { "threshold_value": 2000, "enabled": false } } } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "metric": "turn_latency_p50", "operator": ">", "threshold_value": 1, "window_duration_seconds": 2, "enabled": true, "current_state": "ok", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "project_id": "<string>", "since": "2023-11-07T05:31:56Z", "last_evaluated_at": "2023-11-07T05:31:56Z", "current_value": 123 }
Show child attributes
Alert rule updated successfully.
turn_latency_p50
turn_latency_p95
api_errors
function_errors
call_crashes
call_volume
>
<
>=
<=
x >= 0
x >= 1
ok
alert
no_data
unknown
Was this page helpful?