cURL
curl --request GET \ --url https://api.poly.ai/v1/alert-rules/{rule_id} \ --header 'x-api-key: <api-key>'
{ "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 }
Alert rule retrieved 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?