跳转至

故障操作记录 查询



GET /api/v1/incidents/operate/{incident_uuid}/list

概述

路由参数

参数名 类型 必选 说明
incident_uuid string Y 故障uuid
允许为空: False

Query 请求参数

参数名 类型 必选 说明
pageSize integer 每页返回数量
允许为空: False
例子: 10
pageIndex integer 页码
允许为空: False
例子: 1

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/incidents/operate/incident_xxxx/list?pageIndex=1&pageSize=20' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--compressed

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "incidentsUUID": "incident_xxx",
                "workspaceUUID": "wksp_xxx",
                "content": "状态变更: open -> working",
                "extend": {
                    "after": "working",
                    "before": "open",
                    "after_info": {},
                    "before_info": {}
                },
                "operator": "acnt_xxx",
                "operateType": "status_update",
                "id": 436,
                "uuid": "incop_xxxx",
                "status": 0,
                "creator": "SYS",
                "updator": "",
                "createAt": 1768973255,
                "deleteAt": -1,
                "updateAt": -1,
                "creatorInfo": {
                    "uuid": "",
                    "status": 0,
                    "name": "SYS",
                    "wsAccountStatus": 0,
                    "username": "SYS",
                    "email": "SYS",
                    "mobile": ""
                },
                "updatorInfo": {},
                "operatorInfo": {
                    "uuid": "acnt_xxxx",
                    "status": 0,
                    "wsAccountStatus": 0,
                    "username": "xxx",
                    "name": "xxx",
                    "iconUrl": "",
                    "email": "xxx",
                    "mobile": "",
                    "acntWsNickname": ""
                }
            },
            {
                "incidentsUUID": "incident_xxx",
                "workspaceUUID": "wksp_xxx",
                "content": "触发了新的故障",
                "extend": {},
                "operator": "Obsy",
                "operateType": "create",
                "id": 435,
                "uuid": "incop_xxx",
                "status": 0,
                "creator": "SYS",
                "updator": "",
                "createAt": 1768926015,
                "deleteAt": -1,
                "updateAt": -1,
                "creatorInfo": {
                    "uuid": "",
                    "status": 0,
                    "name": "SYS",
                    "wsAccountStatus": 0,
                    "username": "SYS",
                    "email": "SYS",
                    "mobile": ""
                },
                "updatorInfo": {},
                "operatorInfo": {
                    "uuid": "Obsy",
                    "status": 0,
                    "name": "Obsy",
                    "wsAccountStatus": 0,
                    "username": "Obsy",
                    "email": "Obsy",
                    "mobile": ""
                }
            }
        ],
        "pageInfo": {
            "pageIndex": 1,
            "pageSize": 20,
            "count": 2,
            "totalCount": 2
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "xxx"
} 

文档评价

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