订阅规则测试
开发中
POST
https://api.flashcat.cloud/api/n9e/alert-subscribe/alert-subscribes-tryrun
最后修改时间:2025-06-13 10:49:18
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e/alert-subscribe/alert-subscribes-tryrun' \
--header 'Content-Type: application/json' \
--header 'X-User-Token;' \
--data-raw '{
"event_id": 222,
"subscribe_config": {
"note": "test",
"cate": "prometheus",
"datasource_ids": [
1
],
"severities": [
1,2,3
],
"busi_groups": [
{
"value": "Default Busi Group",
"func": "=="
}
],
"tags": [
{
"func": "==",
"key": "ident",
"value": "smxMorgan"
}
],
"for_duration": 0,
"notify_version": 1,
"user_group_ids": "1 2 3",
"redefine_severity": 1,
"new_severity": 2,
"redefine_channels": 1,
"new_channels": "feishu",
"redefine_webhooks": 0,
"webhooks": null,
"notify_rule_ids": [],
"rule_ids": [ ],
"cluster": "0",
"id": 2
}
}'
响应示例响应示例
{
"err": "string",
"dat": "string"
}
请求参数
Body 参数application/json
返回响应
修改于 2025-06-13 10:49:18