All Products
Search
Document Center

DescribeUserMetrics

Last Updated: Jan 15, 2021

Description

Queries user metrics related to the conversion rate.

Method

GET

URI

/openapi/instances/{instanceId}/metrics

Request parameters

Parameter

Type

Required

Description

startTime

Long

Yes

The start time. The value of this parameter must be accurate to the second.

endTime

Long

Yes

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

metricType

String

Yes

The type of data that you want to query. Valid values: pvCtr and uvCtr.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

List

The result that is returned.

Sample requests

GET /openapi/instances/xxx/metrics?startTime=1581323155&endTime=1581413480000&metricType=pvCtr

Sample responses

JSON format

Sample success responses

{
    "Result": [
        {
            "SceneId": "all",
            "DataPoints": [
                {
                    "Val": 84.6,
                    "StartTime": 1567152000,
                    "EndTime": 1567155600
                }
            ]
        },
        {
            "SceneId": "1",
            "DataPoints": [
                {
                    "Val": 84.6,
                    "StartTime": 1567152000,
                    "EndTime": 1567155600
                }
            ]
        }
    ],
    "RequestId": "5F3E7EA4-8CDD-482D-BA07-D8BCDDDC55C3"
}