kind 为 scheduled、realtime 或 anomaly。见 告警。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
{
"name": "High error rate",
"kind": "scheduled",
"stream": "app",
"statement": "SELECT count(*) AS c FROM app WHERE level = 'error'",
"condition": { "op": ">", "value": 100 },
"interval_secs": 60,
"escalation_id": "esc_2abc..."
}
创建告警规则。
POST /api/v1/alerts/rules
kind 为 scheduled、realtime 或 anomaly。见 告警。
{
"name": "High error rate",
"kind": "scheduled",
"stream": "app",
"statement": "SELECT count(*) AS c FROM app WHERE level = 'error'",
"condition": { "op": ">", "value": 100 },
"interval_secs": 60,
"escalation_id": "esc_2abc..."
}