# 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': '主服务器'
})