All Products
Search
Document Center

:ListDashboardMetrics

Last Updated:Mar 01, 2024

Queries the metrics of a specified instance on the dashboard.

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}/dashboard/metrics

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The type of the metric. Valid values:

USER_ACTION_PV_COUNT: the number of page views

USER_ACTION_UV_COUNT: the number of unique views

USER_ACTION_PV_RATIO: the conversion rate

USER_ACTION_UV_RATIO: the traffic consumed per person

airec-cn-o400whm78004
startTimelongYes

USERACTIONPV_COUNT

1586673466
endTimelongYes

The statistical results.

1586673466
metricTypestringNo

The statistical results.

The details about the metric.

Response parameters

ParameterTypeDescriptionExample
object
resultobject []

The specific value of the metric.

totalobject

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

xxx
detailobject []

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

valstring

The error code.

13
startTimestring

The ID of the request.

1586673466
endTimestring

The error message.

1586673466
codestring

null

InternalServerError

Examples

Sample success responses

JSONformat

{
  "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"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history