- 介绍
- /api/n9e 接口
- 告警规则
- 订阅规则
- 屏蔽规则
- 告警事件
- 通知规则
- 机器列表
- 团队管理
- 业务组管理
- 用户管理
- 权限管理
- 采集配置
- 网络设备
- 告警管理
- 指标视图
- 告警自愈
- 采集配置
- 网络设备
- pingmesh
- pingmesh-idc网络规则注册
- pingmesh-idc网络规则修改
- pingmesh-idc网络规则查询
- pingmesh-idc网络规则删除
- pingmesh-idc间ping规则配置注册
- pingmesh-idc间ping规则配置查看
- pingmesh-idc间ping规则配置修改
- pingmesh-idc间ping规则配置删除
- pingmesh-ping动作开关设置
- pingmesh-ping动作开关查询
- pingmesh-idc之间拓扑图
- pingmesh-idc内netident拓扑
- pingmesh-netident内server之间拓扑
- pingmesh-查询指标历史数据
- pingmesh-idc网络规则注册(From CMDB)
- pingmesh-报警规则导出
- 数据查询
- 仪表盘
- 模板中心
- 拨测任务API
- 集成仪表盘
- 审计管理
- 数据源
- 全局屏蔽
- 仪表盘标注
- 通知媒介
- 消息模板
- auth认证
- metricsDesc
- 通知配置-待下线
- 快捷视图(指标)
- 变量设置
- 单点登陆
- 用户信息--待删除(与用户管理重复)
- /v1/n9e 接口
新增通知媒介
POST
https://api.flashcat.cloud/api/n9e/notify-channel-configs
最后修改时间:2025-02-26 06:40:37
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
array of:
name
string
必需
ident
string
必需
description
string
必需
param_config
object
必需
user_info
object
必需
custom
object
必需
request_type
string
必需
request_config
object
必需
http_request_config
object
必需
smtp_request_config
object
必需
script_request_config
object
必需
flashduty_request_config
object
必需
示例
[
{
"name": "FeiShu Notification",
"ident": "feishu_channel",
"description": "A channel for sending notifications via FeiShu",
"param_config": {
"user_contact_key": "Phone",
"custom": {}
},
"request_type": "http",
"request_config": {
"http_request_config": {
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-url",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"proxy": "",
"timeout": 10,
"concurrency": 5,
"retry_times": 3,
"retry_interval": 5,
"tls": {
"skip_verify": false
},
"request": {
"parameters": {
"feishu_robot_token": "your_feishu_token"
},
"body": "This is a FeiShu notification."
}
},
"smtp_request_config": {},
"script_request_config": {}
}
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e/notify-channel-configs' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "FeiShu Notification",
"ident": "feishu_channel",
"description": "A channel for sending notifications via FeiShu",
"param_config": {
"user_contact_key": "Phone",
"custom": {}
},
"request_type": "http",
"request_config": {
"http_request_config": {
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-url",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"proxy": "",
"timeout": 10,
"concurrency": 5,
"retry_times": 3,
"retry_interval": 5,
"tls": {
"skip_verify": false
},
"request": {
"parameters": {
"feishu_robot_token": "your_feishu_token"
},
"body": "This is a FeiShu notification."
}
},
"smtp_request_config": {},
"script_request_config": {}
}
}
]'
返回响应
🟢200成功
application/json
Body
dat
integer
通知媒介 id
err
string
必需
示例
{
"dat": 1,
"err": ""
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2025-02-26 06:40:37