Skip to Content
Alerts

Get alert

Permissionalerts:readAuthentication
GET
/alerts/{id}

Team-scoped Alerts operation. Rule percentages use eligible invocations or processing attempts, not affected calls. An open incident emits one firing and one confirmed-recovery notification per selected member. Empty or stale windows never resolve an incident. Preview uses recent observations without notifications.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Response Body

Successful Alerts operation

application/json
  1. response
id*string
Formatuuid
org_id*string
Formatuuid
name*string
Length1 <= length <= 120
definition*
enabled*boolean
resource_version*integer
state*string
Value in"healthy""pending""firing""recovering""insufficient_data""error""paused"
value*number|null
numerator*integer
denominator*integer
breach_since*|null
recovery_since*|null
evaluated_at*|null
last_error*string|null
archived_at*|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.kejue.co/v1/alerts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "name": "string",  "definition": {    "min_coverage_percent": 80,    "metric": "tool_5xx",    "campaign_ids": [      "3e7ba4c0-66cf-49db-b351-57800273b6f0"    ],    "failure_codes": [      "provider_busy"    ],    "aggregation": "rate",    "severity": "warning",    "resource_keys": [      "string"    ],    "agent_ids": [      "06fc211d-6a87-43c8-9a41-e3b40320420d"    ],    "window_minutes": 5,    "threshold": 0,    "recovery_threshold": 0,    "min_samples": 1,    "fire_for_minutes": 0,    "recover_for_minutes": 0,    "recipient_ids": [      "bfa6ab48-642a-4965-a829-f20c353d1c93"    ],    "include_tests": true,    "field": "string",    "operator": "eq",    "expected": "string"  },  "enabled": true,  "resource_version": 0,  "state": "healthy",  "value": 0,  "numerator": 0,  "denominator": 0,  "breach_since": "2019-08-24T14:15:22Z",  "recovery_since": "2019-08-24T14:15:22Z",  "evaluated_at": "2019-08-24T14:15:22Z",  "last_error": "string",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}