🔗 Webhook 接收端点

接收地址 (POST)

http://alert.cmxcool.com/api/webhook
level 告警级别:critical / warning / info
title 告警标题(必填)
content 告警详情内容
source 数据源名称(可选,用于匹配数据源)

📡 请求示例

# cURL 示例
curl -X POST http://alert.cmxcool.com/api/webhook \
  -H "Content-Type: application/json" \
  -d '{
    "level": "critical",
    "title": "服务器磁盘空间不足",
    "content": "服务器 web-01 磁盘使用率超过90%,请及时处理",
    "source": "主服务器"
  }'

# Python requests 示例
import requests
requests.post('http://alert.cmxcool.com/api/webhook', json={
    'level': 'warning',
    'title': '内存使用率偏高',
    'content': '服务器内存使用率超过80%',
    'source': '主服务器'
})

🧪 在线测试

发送结果