获取静默规则列表¶
GET /api/v1/monitor/mute/list
概述¶
分页获取静默规则列表
Query 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
search | string | 搜索规则名 允许为空: False |
|
workStatus | commaArray | 过滤参数, 状态使用逗号(,)连接 待生效: pending_activation, 进行中: active, 已过期: expired 允许为空: False |
|
isEnable | commaArray | 过滤参数, 1代表 查看启用, 0代表查看禁用 允许为空: False |
|
type | commaArray | 过滤参数, custom/checker/alertPolicy/tag, 多个参数使用逗号(,)连接 允许为空: False |
|
updator | commaArray | 过滤参数, 更新人UUID, 使用逗号(,)连接 允许为空: False |
|
creator | commaArray | 过滤参数, 创建人UUID, 使用逗号(,)连接 允许为空: False |
|
pageIndex | integer | 页码 允许为空: False 例子: 1 $minValue: 1 |
|
pageSize | integer | 每页返回数量 允许为空: False 例子: 10 $minValue: 1 $maxValue: 100 |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/monitor/mute/list?pageIndex=1&pageSize=2' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed
响应¶
{
"code": 200,
"content": [
{
"createAt": 1642572752,
"creator": "wsak_xxxxx",
"creatorInfo": {
"uuid": "xx",
"status": 0,
"username": "xx",
"name": "xx",
"iconUrl": "",
"email": "xx",
"acntWsNickname": "xx"
},
"deleteAt": -1,
"end": 1642576351,
"id": 383,
"notifyMessage": "",
"notifyTargets": [],
"notifyTime": -1,
"start": 1642572751,
"status": 0,
"tags": [
{
"host": "testname"
}
],
"type": "host",
"updateAt": 1642572752,
"updator": "wsak_xxxxx",
"updatorInfo": {
"uuid": "xx",
"status": 0,
"username": "xx",
"name": "xx",
"iconUrl": "",
"email": "xx",
"acntWsNickname": "xx"
},
"uuid": "mute_xxx890",
"workspaceUUID": "wksp_xxx4af"
}
],
"errorCode": "",
"message": "",
"pageInfo": {
"count": 1,
"pageIndex": 1,
"pageSize": 2,
"totalCount": 1
},
"success": true,
"traceId": "TRACE-AB73EEDD-3873-4EBD-A424-722022770AD5"
}