All Products
Search
Document Center

ListDashboardMetrics

Last Updated: Jan 15, 2021

Description

Queries the metrics of a specified instance on a dashboard.

Method

GET

URI

/openapi/instances/{instanceId}/dashboard/metrics

Request parameters

Parameter

Type

Required

Description

startTime

long

Yes

The beginning of the time range to query. The value of this parameter must be accurate to the second.

endTime

Long

Yes

The end of the time range to query. The value of this parameter must be accurate to the second.

metricType

String

Yes

The metric type. Valid values: USER_PV_CTR, USER_UV_CTR, USER_PV_CVR (exclusive for e-commerce), USER_UV_CVR (exclusive for e-commerce), and USER_DAUUSER_MAU.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

List

The result that is returned.

Sample requests

GET /openapi/instances/airec-cn-xxxxx/dashboard/metircs?startTime=1541001600000
&endTime=1541174400000&metricType=xxx

Sample responses

JSON format

{
    "RequestId":"16B78383-2803-4964-9605-37B30C073B0E",
    "Result":[
        {
            "Total":{
                "Val":"32",
                "Min":"32",
                "Average7":"32",
                "Max":"32",
                "Average30":"32",
                "Daily":"32",
                "StatTime":"1586673466",
                "EndTime":"1586673466",
                "Weekly":"32"
            },
            "Detail":[
                {
                    "Val":"13",
                    "StartTime":"1586673466",
                    "EndTime":"1586673466"
                },
                {
                    "Val":"32",
                    "StartTime":"1586673466",
                    "EndTime":"1586673466"
                }
            ]
        }
    ]
}