修改通知规则
PUT
https://api.flashcat.cloud/api/n9e/notify-rule/{id}
最后修改时间:2025-05-20 06:06:49
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.flashcat.cloud/api/n9e/notify-rule/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "High CPU Alert",
"description": "Alert when CPU usage exceeds 80%",
"enable": true,
"user_group_ids": [101, 102],
"notify_configs": [
{
"channel_id": 2,
"template_id": 3,
"params": {
"threshold": 80
},
"severities": [1, 2],
"time_ranges": [
{
"start": "08:00",
"end": "18:00",
"week": [3, 4]
}
],
"label_keys": [
{
"key": "env",
"op": "==",
"value": "production"
}
]
}
]
}'
响应示例响应示例
{
}
请求参数
Path 参数
id
string
必需
Body 参数application/json