ListDashboardMetrics - ListDashboardMetrics
查询指定实例的整理仪表盘数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v2/openapi/instances/{instanceId}/dashboard/metrics HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID。 |
airec-cn-o400whm78004 |
| startTime |
integer |
是 |
起始时间,秒级时间戳 |
1586673466 |
| endTime |
integer |
是 |
截止时间,秒级时间戳 |
1586673466 |
| metricType |
string |
否 |
指标类型 USER_ACTION_PV_COUNT 整体流量规模 PV USER_ACTION_UV_COUNT 整体流量规模 UV USER_ACTION_PV_RATIO 流量转化率 USER_ACTION_UV_RATIO 人均流量 |
指标类型 USERACTIONPV_COUNT |
| metricView |
string |
否 |
查询维度,配合 metricQuery 使用,默认值为 USER, 枚举值如下; USER 用户维度, ITEM 物品维度 |
ITEM |
| metricQuery |
string |
否 |
查询条件,格式 k1:v1;k2:v2 |
dimension:ITEM_TYPE;behaviorType:expose |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| result |
array<object> |
统计结果 |
|
|
object |
|||
| total |
object |
统计 |
xxx |
| detail |
array<object> |
详细信息 |
|
|
object |
|||
| val |
string |
具体数值 |
13 |
| startTime |
string |
秒级时间戳 |
1586673466 |
| endTime |
string |
秒级时间戳 |
1586673466 |
| code |
string |
错误码 |
InternalServerError |
| requestId |
string |
请求 id |
8F81A922-6C81-46D6-B78C-CC35E16B1691 |
| message |
string |
错误详情 |
An internal server error occurred |
示例
正常返回示例
JSON格式
{
"result": [
{
"total": {
"test": "test",
"test2": 1
},
"detail": [
{
"val": "13",
"startTime": "1586673466",
"endTime": "1586673466"
}
]
}
],
"code": "InternalServerError",
"requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
"message": "An internal server error occurred"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。