All Products
Search
Document Center

ListDashboardMetricsFlows

Last Updated: Jan 15, 2021

Description

Queries the traffic data on the dashboard of a specified instance.

Method

GET

URI

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

Request parameters

Parameter

Type

Required

Description

startTime

Long

Yes

The start time. The value must be accurate to the millisecond.

endTime

Long

Yes

The end time. The value must be accurate to the millisecond.

metricType

String

Yes

The metric type.

Valid values: USER_ACTION_PV_COUNT, PVUSER_ACTION_UV_COUNT, UVUSER_ACTION_PV_RATIO, and USER_ACTION_UV_RATIO.

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/flows?startTime=1541001600000
&endTime=1541174400000&metricType=xxx

Sample responses

JSON format

{
  "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
  "Result": [
    {
        "MetricType":"click",
        "MetricData":{
            "Val":"32",
            "Min":"32",
            "Average7":"32",
            "Max":"32",
            "Average30":"32",
            "Daily":"32",
            "StatTime":"1586673466",
            "EndTime":"1586673466",
            "Detail":[
                {
                    "Val":"10",
                    "StartTime":"1586673466",
                    "EndTime":"1586673466",
                    "Type":"click"
                },
                {
                    "Val":"10",
                    "StartTime":"1586673466",
                    "EndTime":"1586673466",
                    "Type":"expose"
                }
            ],
            "Weekly":"32"
        }
    }
]
}