web-app/src/assets/doc/alert-integration/webhook.zh-CN.md
HertzBeat 提供 API 接口,外部系统可以通过 Webhook 方式调用此接口,将告警数据推送到 HertzBeat 告警平台。
POST /api/alerts/report
Content-Type: application/jsonAuthorization: Bearer {token}{
"labels": {
"alertname": "HighCPUUsage",
"priority": "critical",
"instance": "343483943"
},
"annotations": {
"summary": "High CPU usage detected"
},
"content": "The CPU usage on instance 343483943 is critically high.",
"status": "firing",
"triggerTimes": 3,
"startAt": 1736580031832,
"activeAt": 1736580039832,
"endAt": null
}
labels: 告警标签
alertname: 告警规则名称priority: 告警级别 (warning, critical)instance: 告警实例annotations: 告警注释信息
summary: 告警摘要description: 告警详细描述content: 告警内容status: 告警状态 (firing, resolved)triggerTimes: 告警触发次数startAt: 告警开始时间activeAt: 告警激活时间endAt: 告警结束时间/api/alerts/report 接口,将告警数据推送到 HertzBeat 告警平台。graph LR
A[外部系统告警] --> B[Webhook]
B --> C[HertzBeat告警平台]
C --> D[分组收敛]
D --> E[告警抑制]
E --> F[告警静默]
F --> G[告警中心]
F --> H[消息分发]