获取资源统计。

调试

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

请求头

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

请求语法

POST /config/resource/count HTTP/1.1

请求参数

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

body

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

幂等校验

返回数据

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

Id of the request

data Object

data

incidentCount Integer 1331

事件总数

alertCount Integer 123

报警总数

problemCount Integer 221

故障总数

integrationCount Integer 2211

集成总数

示例

请求示例

POST /config/resource/count HTTP/1.1
Host:gemp.aliyuncs.com
Content-Type:application/json

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

正常返回示例

XML格式

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

<GetResourceStatisticsResponse>
    <requestId>FD200FAE-E98F-496E-BFE6-4CE61E59A2E9</requestId>
    <data>
        <incidentCount>1331</incidentCount>
        <alertCount>123</alertCount>
        <problemCount>221</problemCount>
        <integrationCount>2211</integrationCount>
    </data>
</GetResourceStatisticsResponse>

JSON格式

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

{
  "requestId" : "FD200FAE-E98F-496E-BFE6-4CE61E59A2E9",
  "data" : {
    "incidentCount" : 1331,
    "alertCount" : 123,
    "problemCount" : 221,
    "integrationCount" : 2211
  }
}

错误码

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

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