All Products
Search
Document Center

:DescribeUserMetrics

Last Updated:Mar 01, 2024

Queries user metrics related to the conversion rate.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /v2/openapi/instances/{instanceId}/metrics

Request parameters

ParameterTypeRequiredDescriptionExample
startTimelongYes

The start time. The value is a timestamp in seconds.

1567152000
endTimelongYes

The end time. The value is a timestamp in seconds.

1567155600
metricTypestringYes

The type of the user metric that you want to query. Valid values: pvCtr and uvCtr.

pvCtr
instanceIdstringYes

The instance ID.

airec-cn-o400whm78004

Response parameters

ParameterTypeDescriptionExample
object
resultobject []

The returned results.

sceneIdstring

The scene ID.

all
dataPointsobject []

The returned metrics.

valfloat

The value of the corresponding metric.

84.6
startTimelong

The start time. The value is a timestamp in seconds.

1567152000
endTimelong

The end time. The value is a timestamp in seconds.

1567152000
codestring

The error code.

InternalServerError
requestIdstring

The request ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

The error message.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "result": [
    {
      "sceneId": "all",
      "dataPoints": [
        {
          "val": 84.6,
          "startTime": 1567152000,
          "endTime": 1567152000
        }
      ]
    }
  ],
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history