事件统计。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /incident/count HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
Object Body

A short description of struct

clientToken String Body FD200FAE-E98F-496E-BFE6-4CE61E59A2E9

幂等校验Id

返回数据

名称 类型 示例值 描述
requestId String FD200FAE-E98F-496E-BFE6-4CE61E59A2E9

requestId

data Object

data

myResponse Integer 1

我的待响应

myFinish Integer 11

我的完结

allResponse Integer 12

所有待响应

allFinish Integer 113

所有完结

示例

请求示例

POST /incident/count HTTP/1.1
Host:gemp.cn-shanghai.aliyuncs.com
Content-Type:application/json

{
  "clientToken" : "FD200FAE-E98F-496E-BFE6-4CE61E59A2E9"
}

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetIncidentStatisticsResponse>
    <requestId>FD200FAE-E98F-496E-BFE6-4CE61E59A2E9</requestId>
    <data>
        <myResponded>1</myResponded>
        <myFinish>11</myFinish>
        <allResponded>12</allResponded>
        <allFinish>113</allFinish>
    </data>
</GetIncidentStatisticsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "FD200FAE-E98F-496E-BFE6-4CE61E59A2E9",
  "data" : {
    "myResponded" : 1,
    "myFinish" : 11,
    "allResponded" : 12,
    "allFinish" : 113
  }
}

错误码

HttpCode 错误码 错误信息 描述
403 UserNotAdded The user is not added to the system. 该用户未添加至系统
404 IncidentNotExtisted The incident does not exist. 不存当前事件

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。