curl --request POST \
--url 'https://api.flashcat.cloud/channel/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"channel_name": "<string>",
"description": "<string>",
"team_id": 123,
"escalate_rule": {
"template_id": "<string>",
"target": {
"team_ids": [
123
],
"person_ids": [
123
],
"schedule_to_role_ids": {
"{schedule_id}": [
123
]
},
"by": {
"critical": [
"email"
],
"warning": [
"email"
],
"info": [
"email"
],
"follow_preference": true
},
"webhooks": [
{
"type": "feishu_app",
"settings": {
"data_source_id": 123,
"chat_ids": "<string>",
"reply_mode": "threads",
"reply_event_types": [
"<string>"
],
"disable_at": true,
"put_top_notice": true,
"severities": [
"Info"
]
}
}
]
},
"aggr_window": 123
},
"plugin_ids": [
123
],
"auto_resolve_timeout": 43200,
"auto_resolve_mode": "trigger",
"is_private": true,
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"<string>"
]
}
],
"equals": [
"title"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 123,
"storm_threshold": 123,
"i_keys": [
"title"
],
"i_score_threshold": 0.9,
"storm_thresholds": [
5001
]
},
"flapping": {
"is_disabled": true,
"max_changes": "i",
"in_mins": 123,
"mute_mins": 123
},
"disable_outlier_detection": true
}
'{
"error": {
"code": "<string>",
"message": "<string>"
},
"data": {
"channel_id": "<string>",
"channel_name": "<string>"
}
}curl --request POST \
--url 'https://api.flashcat.cloud/channel/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"channel_name": "<string>",
"description": "<string>",
"team_id": 123,
"escalate_rule": {
"template_id": "<string>",
"target": {
"team_ids": [
123
],
"person_ids": [
123
],
"schedule_to_role_ids": {
"{schedule_id}": [
123
]
},
"by": {
"critical": [
"email"
],
"warning": [
"email"
],
"info": [
"email"
],
"follow_preference": true
},
"webhooks": [
{
"type": "feishu_app",
"settings": {
"data_source_id": 123,
"chat_ids": "<string>",
"reply_mode": "threads",
"reply_event_types": [
"<string>"
],
"disable_at": true,
"put_top_notice": true,
"severities": [
"Info"
]
}
}
]
},
"aggr_window": 123
},
"plugin_ids": [
123
],
"auto_resolve_timeout": 43200,
"auto_resolve_mode": "trigger",
"is_private": true,
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"<string>"
]
}
],
"equals": [
"title"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 123,
"storm_threshold": 123,
"i_keys": [
"title"
],
"i_score_threshold": 0.9,
"storm_thresholds": [
5001
]
},
"flapping": {
"is_disabled": true,
"max_changes": "i",
"in_mins": 123,
"mute_mins": 123
},
"disable_outlier_detection": true
}
'{
"error": {
"code": "<string>",
"message": "<string>"
},
"data": {
"channel_id": "<string>",
"channel_name": "<string>"
}
}不传,仅创建者和主体账号可以管理空间配置
显示 子属性
不传不自动恢复
0 <= x <= 86400trigger, update 不传默认公开
不传不聚合
显示 子属性
不传按默认值处理
显示 子属性
默认开启新奇告警检测,但仅在pro订阅生效
此页面对您有帮助吗?