查询整体数据概览。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /v2/openapi/instances/[instanceId]/sync-reports/aggregation HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
startTime | Long | Query | 是 | 1586673466 |
开始时间秒级时间戳 |
endTime | Long | Query | 是 | 1586673466 |
结束时间秒级时间戳 |
instanceId | String | Path | 是 | 实例ID。 |
airec-cn-o400whm78004 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | String | InternalServerError |
错误码 |
message | String | An internal server error occurred |
错误详情 |
requestId | String | 8F81A922-6C81-46D6-B78C-CC35E16B1691 |
请求id |
result | Map | xxx |
查询结果 |
示例
请求示例
GET /openapi/instances/airec-cn-xxxxx/sync-reports/aggregation?startTime=1566489600&endTime=1566576000
正常返回示例
XML
格式
<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>
<Result>
<Level>normal</Level>
<StartTime>1566489600</StartTime>
<EndTime>1566658800</EndTime>
<Detail>
<Level>normal</Level>
<TotalCount/>
<Type>behavior</Type>
<ErrorCount/>
<ErrorPercent/>
</Detail>
<Detail>
<Level>normal</Level>
<TotalCount/>
<Type>item</Type>
<ErrorCount/>
<ErrorPercent/>
</Detail>
<Detail>
<Level>normal</Level>
<TotalCount/>
<Type>user</Type>
<ErrorCount/>
<ErrorPercent/>
</Detail>
</Result>
JSON
格式
{
"RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
"Result": {
"Level": "normal",
"StartTime": 1566489600,
"EndTime": 1566658800,
"Detail": [
{
"Level": "normal",
"TotalCount": "",
"Type": "behavior",
"ErrorCount": "",
"ErrorPercent": ""
},
{
"Level": "normal",
"TotalCount": "",
"Type": "item",
"ErrorCount": "",
"ErrorPercent": ""
},
{
"Level": "normal",
"TotalCount": "",
"Type": "user",
"ErrorCount": "",
"ErrorPercent": ""
}
]
}
}
错误码
访问错误中心查看更多错误码。