通知规则列表
GET
https://api.flashcat.cloud/api/n9e/notify-rules
最后修改时间:2025-05-20 06:06:53
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e/notify-rules' \
--header 'Content-Type: application/json' \
--data-raw '{}'
响应示例响应示例
{
"dat": [
{
"id": 12345,
"name": "High CPU Alert",
"description": "Alert when CPU usage exceeds 80%",
"enable": true,
"user_group_ids": [
101,
102
],
"notify_configs": [
{
"channel_id": 1,
"template_id": 1,
"params": {
"threshold": 80
},
"severities": [
1,
2
],
"time_ranges": [
{
"start": "08:00",
"end": "18:00",
"week": [
1,
2
]
}
],
"label_keys": [
{
"key": "env",
"op": "==",
"value": "production"
}
]
}
]
},
{
"id": 12346,
"name": "Low Disk Alert",
"description": "Alert when disk usage exceeds 90%",
"enable": true,
"user_group_ids": [
103,
104
],
"notify_configs": [
{
"channel_id": 2,
"template_id": 2,
"params": {
"threshold": 90
},
"severities": [
2,
3
],
"time_ranges": [
{
"start": "00:00",
"end": "23:59",
"week": [
4,
5
]
}
],
"label_keys": [
{
"key": "env",
"op": "==",
"value": "production"
}
]
}
]
}
],
"err": ""
}
请求参数
Body 参数application/json