查询异常检测配置列表
更新时间:2023-06-30
接口描述
分页查询异常检测配置列表。
请求结构
POST /msg/config/list
请求头域
无特殊请求头。
请求参数
参数 | 类型 | 是否必选 | 描述 | 示例 |
---|---|---|---|---|
pageNum | Int32 | 是 | 分页查询中的页号,从1开始 | 2 |
pageSize | Int32 | 是 | 每页返回的记录数量 | 20 |
响应头域
无特殊响应头。
响应参数
参数 | 类型 | 描述 |
---|---|---|
status | Int32 | 接口返回状态, 0表示成功,其他表示失败。status==0是可能是部分删除成功,部分删除失败,具体参考data字段。 |
message | String | 成功或错误提示 |
data | Map | 分页查询结果 |
+total | Int32 | 异常检测配置总条数 |
+list | Array | 查询结果 |
++id | String | 异常检测配置的数据库记录ID |
++name | String | 异常检测配置名称 |
++desc | String | 异常检测配置描述 |
++topic | String | 异常检测配置的topic |
++schema | String | 异常检测配置的schema |
++name | String | 异常检测配置名称 |
++createAt | Int64 | 距离格林威治时间1970年01月01日的毫秒级时间戳,表示配置添加的时间 |
++updateAt | Int64 | 距离格林威治时间1970年01月01日的毫秒级时间戳,表示配置更新的时间 |
请求示例
Java
1POST /msg/config/list HTTP/1.1
2Content-Type: application/json
3Content-Length: 1254
4
5{
6 "pageNum":1,
7 "pageSize":20
8}
响应示例
Java
1HTTP/1.1 200 OK
2cache-control: no-cache
3content-length: 484
4content-type: application/json; charset=utf-8
5date: Thu, 17 Nov 2022 00:45:02 GMT
6server: nginx/1.21.6
7
8{
9 "status": 0,
10 "message": "success",
11 "data": {
12 "list": [
13 {
14 "id": "64914e7020e2cd00015cb6c8",
15 "name": "your_config_name2",
16 "desc": "your_description2",
17 "topic": "lucky-ai",
18 "schema": "calling_detect",
19 "createAt": 1687244400530,
20 "updateAt": 1687244400530
21 },
22 {
23 "id": "64915f0a20e2cd0001f80727",
24 "name": "your_config_name2",
25 "desc": "your_description2",
26 "topic": "t1",
27 "schema": "s1",
28 "createAt": 1687248650157,
29 "updateAt": 1687248650157
30 }
31 ],
32 "total": 2
33 }
34}