- 介绍
- /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-plus/conf-global-alert-mute
最后修改时间:2025-03-26 09:59:14
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
id
integer
可选
disabled
integer
1 禁用 0 启用
note
string
备注
ex_group_ids
null
排除业务组 ids
ex_datasource_ids
null
排查数据源 ids
cause
string
屏蔽原因
btime
integer
可选
etime
integer
可选
created_at
integer
可选
created_by
string
可选
update_at
integer
可选
update_by
string
可选
periodic_mutes
array [object {3}]
可选
enable_stime
string
屏蔽开始时间
enable_etime
string
屏蔽结束时间
enable_days_of_week
string
屏蔽哪天
mute_time_type
integer
可选
tags
array [object {3}]
可选
key
string
可选
func
string
可选
value
string
可选
示例
{
"disabled": 0,
"note": "全局屏蔽规则222",
"ex_group_ids": null,
"ex_datasource_ids": null,
"cause": "",
"btime": 1733838552,
"etime": 1733842152,
"created_at": 1733981537,
"created_by": "",
"update_at": 1733839749,
"update_by": "root",
"periodic_mutes": [
{
"enable_stime": "00:00",
"enable_etime": "00:00",
"enable_days_of_week": "1 2 3 4 5 6 0"
}
],
"mute_time_type": 1,
"tags": [
{
"key": "test",
"func": "==",
"value": "test",
"Regexp": null,
"Vset": null
},
{
"key": "severity",
"func": "!~",
"value": "critical",
"Regexp": "critical",
"Vset": null
}
]
}
示例代码
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-plus/conf-global-alert-mute' \
--header 'Content-Type: application/json' \
--data-raw '{
"disabled": 0,
"note": "全局屏蔽规则222",
"ex_group_ids": null,
"ex_datasource_ids": null,
"cause": "",
"btime": 1733838552,
"etime": 1733842152,
"created_at": 1733981537,
"created_by": "",
"update_at": 1733839749,
"update_by": "root",
"periodic_mutes": [
{
"enable_stime": "00:00",
"enable_etime": "00:00",
"enable_days_of_week": "1 2 3 4 5 6 0"
}
],
"mute_time_type": 1,
"tags": [
{
"key": "test",
"func": "==",
"value": "test",
"Regexp": null,
"Vset": null
},
{
"key": "severity",
"func": "!~",
"value": "critical",
"Regexp": "critical",
"Vset": null
}
]
}'
返回响应
🟢200成功
application/json
Body
err
string
必需
示例
{
"err": "string"
}

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


修改于 2025-03-26 09:59:14