跳转至

告警策略-自定义通知日期 列出



GET /api/v1/notice/date/list

概述

告警策略-自定义通知日期 列出

Query 请求参数

参数名 类型 必选 说明
search string 搜索自定义通知日期的配置名称
允许为空: True
pageIndex integer 页码
允许为空: False
例子: 1
$minValue: 1
pageSize integer 每页返回数量
允许为空: False
例子: 10
$minValue: 1
$maxValue: 10000

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/notice/date/list?pageIndex=1&pageSize=10' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "createAt": 1705567043,
                "creator": "wsak_72b16919b18c411496b6dd06fc9ccc72",
                "dates": [
                    "2024/01/01",
                    "2024/05/01"
                ],
                "deleteAt": -1,
                "id": 5,
                "name": "test001",
                "status": 0,
                "updateAt": 1705567043,
                "updator": "wsak_72b16919b18c411496b6dd06fc9ccc72",
                "uuid": "ndate_7d88f0caf6d14510a84607ba56b0ca81",
                "workspaceUUID": "wksp_ed134a6485c8484dbd0e58ce9a9c6115"
            },
            {
                "createAt": 1705566710,
                "creator": "wsak_72b16919b18c411496b6dd06fc9ccc72",
                "dates": [
                    "2025.01.01",
                    "2025.10.01"
                ],
                "deleteAt": -1,
                "id": 4,
                "name": "test002",
                "status": 0,
                "updateAt": 1705567170,
                "updator": "wsak_72b16919b18c411496b6dd06fc9ccc72",
                "uuid": "ndate_302cd65724974557aa25f45dade30f00",
                "workspaceUUID": "wksp_ed134a6485c8484dbd0e58ce9a9c6115"
            },
            {
                "createAt": 1705560344,
                "creator": "acnt_10ab950c69e211eba162ea24b4040175",
                "dates": [
                    "2025-03-04",
                    "2026.04.09"
                ],
                "deleteAt": -1,
                "id": 1,
                "name": "jinlei_03",
                "status": 0,
                "updateAt": 1705562459,
                "updator": "acnt_10ab950c69e211eba162ea24b4040175",
                "uuid": "ndate_b3549fb38f0f4df3a0f3a78121be379f",
                "workspaceUUID": "wksp_ed134a6485c8484dbd0e58ce9a9c6115"
            }
        ],
        "declaration": {
            "asd": [
                "afaw"
            ],
            "asdasd": [
                "dawdawd"
            ],
            "business": "aaa",
            "fawf": [
                "afawf"
            ],
            "organization": "6540c09e4243b300077a9675"
        }
    },
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 3,
        "pageIndex": 1,
        "pageSize": 20,
        "totalCount": 3
    },
    "success": true,
    "traceId": "TRACE-545F2180-3696-4EED-A8B1-9EF909A47510"
} 

文档评价

文档内容是否对您有帮助? ×