Skip to content

Get a List of Alarm Policy



get /api/v1/monitor/group/list

Overview

Paging to get a list of alarm policies.

Query Request Parameter

Parameter Name Type Required Description
search string Search for alarm policy names
Allow null: True
pageIndex integer Page number
Allow null: False
Example: 1
$minValue: 1
pageSize integer Quantity returned per page
Allow null: False
Example: 10
$minValue: 1
$maxValue: 100

Supplementary Description of Parameters

Request Example

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

Response

{
    "code": 200,
    "content": [
        {
            "alertOpt": {
                "alertTarget": [
                    {
                        "status": [
                            "critical",
                            "error",
                            "warning"
                        ],
                        "to": [],
                        "type": "mail"
                    },
                    {
                        "status": [
                            "critical",
                            "error",
                            "warning"
                        ],
                        "to": [
                            "notify_797efeea4ccd400383d1960bc3f6da1e"
                        ],
                        "type": "notifyObject"
                    }
                ],
                "silentTimeout": 1800
            },
            "config": {},
            "createAt": 1641869038,
            "creator": "acnt_4731c3ae86e211eb8a766eb01d27615a",
            "deleteAt": -1,
            "id": 768,
            "name": "默认分组",
            "ruleCount": 15,
            "status": 0,
            "type": "default",
            "updateAt": 1642580425,
            "updator": "acnt_6f2fd4c0766d11ebb56ef2b2c21faf74",
            "uuid": "monitor_3f5e5d2108f74e07b8fb1e7459aae2b8",
            "workspaceUUID": "wksp_2dc431d6693711eb8ff97aeee04b54af"
        }
    ],
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 1,
        "pageIndex": 1,
        "pageSize": 1,
        "totalCount": 48
    },
    "success": true,
    "traceId": "TRACE-DCAA8E03-E266-4EE3-AAD6-C38E2EF59689"
} 

Feedback

Is this page helpful? ×