- 介绍
- /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 接口
获取数据采集列表
开发中
GET
https://api.flashcat.cloud/api/n9e-plus/collects
最后修改时间:2025-03-13 06:52:28
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e-plus/collects'
返回响应
🟢200成功
application/json
Body
id
integer
可选
name
string
采集规则名称
group_id
integer
业务组id
queries
array [object {3}]
筛选条件
key
string
可选
op
string
可选
values
array [oneOf]
值
enable_time
array [object {3}]
生效时间
enable_stime
string
可选
enable_etime
string
可选
enable_days_of_week
string
可选
disabled
integer
是否禁用
component
string
组件名称
component_id
integer
组件id
cate
string
插件类型
content
string
插件配置内容
version
string
版本
create_at
string
创建时间
create_by
string
创建人
update_at
string
更新时间
update_by
string
更新人
load_by_categraf
string
可选
active_target_nums
string
可选
heartbeat_max_duration
string
可选
示例
{
"dat": [
{
"id": 2,
"name": "PING",
"group_id": 4,
"queries": [
{
"key": "hosts",
"op": "==",
"values": [
"demo-01"
]
},
{
"key": "group_ids",
"op": "==",
"values": [
4
]
}
],
"enable_time": null,
"disabled": 0,
"component": "Ping",
"component_id": 0,
"cate": "ping",
"content": "# # collect interval\n# interval = 15\n\n[[instances]]\n# send ping packets to\ntargets = [\n \"www.baidu.com\",\n]\n\n# # append some labels for series\n# labels = { region=\"cloud\", product=\"n9e\" }\n\n# # interval = global.interval * interval_times\n# interval_times = 1\n\n## Number of ping packets to send per interval. Corresponds to the \"-c\"\n## option of the ping command.\n# count = 1\n\n## Time to wait between sending ping packets in seconds. Operates like the\n## \"-i\" option of the ping command.\n# ping_interval = 1.0\n\n## If set, the time to wait for a ping response in seconds. Operates like\n## the \"-W\" option of the ping command.\n# timeout = 3.0\n\n## Interface or source address to send ping from. Operates like the -I or -S\n## option of the ping command.\n# interface = \"\"\n\n## Use only IPv6 addresses when resolving a hostname.\n# ipv6 = false\n\n## Number of data bytes to be sent. Corresponds to the \"-s\"\n## option of the ping command.\n# size = 56\n\n# max concurrency coroutine\n# concurrency = 50\n",
"version": "980e468322173bd3d9c8423b9cf9bbde",
"create_at": 1687926051,
"create_by": "zhenghui",
"update_at": 1715054527,
"update_by": "root",
"load_by_categraf": false,
"active_target_nums": 0,
"heartbeat_max_duration": 0
}
],
"err": ""
}

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


修改于 2025-03-13 06:52:28