跳转至

获取一个告警策略



GET /api/v1/alert_policy/{alert_policy_uuid}/get

概述

获取一个告警策略

路由参数

参数名 类型 必选 说明
alert_policy_uuid string Y 告警策略UUID

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/alert_policy/altpl_xxxx32/get' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

响应

{
    "code": 200,
    "content": {
        "alertOpt": {
            "aggFields": [
                "df_monitor_checker_id"
            ],
            "aggInterval": 120,
            "alertTarget": [
                {
                    "targets": [
                        {
                            "status": "warning",
                            "to": [
                                "notify_xxxx32"
                            ]
                        }
                    ]
                }
            ],
            "silentTimeout": 21600
        },
        "createAt": 1706152082,
        "creator": "xx",
        "declaration": {},
        "deleteAt": -1,
        "id": 4100,
        "name": "jj_modify",
        "notifyObjectName": {
            "notify_xxxx32": "金磊测试无密钥"
        },
        "ruleTimezone": "Asia/Shanghai",
        "score": 0,
        "status": 0,
        "updateAt": 1706152340,
        "updator": "xx",
        "uuid": "altpl_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-F50BB1EB-5CF5-4B07-A633-4EF2E7EA4FD8"
} 

文档评价

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