查询异常检测配置列表
所有文档
menu

边缘服务器 ECS

查询异常检测配置列表

接口描述

分页查询异常检测配置列表。

请求结构

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日的毫秒级时间戳,表示配置更新的时间

请求示例

POST /msg/config/list HTTP/1.1
Content-Type: application/json
Content-Length: 1254

{
    "pageNum":1,
    "pageSize":20
}

响应示例

HTTP/1.1 200 OK
cache-control: no-cache
content-length: 484
content-type: application/json; charset=utf-8
date: Thu, 17 Nov 2022 00:45:02 GMT
server: nginx/1.21.6

{
    "status": 0,
    "message": "success",
    "data": {
        "list": [
            {
                "id": "64914e7020e2cd00015cb6c8",
                "name": "your_config_name2",
                "desc": "your_description2",
                "topic": "lucky-ai",
                "schema": "calling_detect",
                "createAt": 1687244400530,
                "updateAt": 1687244400530
            },
            {
                "id": "64915f0a20e2cd0001f80727",
                "name": "your_config_name2",
                "desc": "your_description2",
                "topic": "t1",
                "schema": "s1",
                "createAt": 1687248650157,
                "updateAt": 1687248650157
            }
        ],
        "total": 2
    }
}
上一篇
新增事件异常检测配置
下一篇
删除事件异常检测配置