获取数据采集列表
开发中
GET
https://api.flashcat.cloud/api/n9e-plus/collects
最后修改时间:2025-03-13 06:52:28
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e-plus/collects'
响应示例响应示例
{
"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": ""
}