Skip to Content
Alerts

Get alert schema

Permissionalerts:readAuthentication
GET
/alerts/schema

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.

Response Body

Successful Alerts operation

application/json
  1. response
templates*array<>
presets*array<>
failure_codes*array<string>

Call failure codes call_failure rules may be narrowed to.

windows*array<integer>
max_rules*integer
max_recipients*integer
Example Request
curl -X GET 'https://api.kejue.co/v1/alerts/schema'
Example Response
{  "templates": [    {      "metric": "string",      "label": "string",      "description": "string",      "source": "string",      "permission": "string"    }  ],  "presets": [    {      "id": "string",      "name": "string",      "description": "string",      "definition": {        "metric": "string",        "aggregation": "rate",        "severity": "warning",        "resource_keys": [],        "agent_ids": [],        "window_minutes": 0,        "threshold": 0,        "recovery_threshold": 0,        "min_samples": 0,        "fire_for_minutes": 0,        "recover_for_minutes": 0,        "recipient_ids": [],        "include_tests": true      }    }  ],  "failure_codes": [    "string"  ],  "windows": [    0  ],  "max_rules": 0,  "max_recipients": 0}