Queries slow queries.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/categories/[categoryIndex]/queries HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes my_app_group_name

The name of the application.

categoryIndex String Path Yes 0

The ID of the optimization suggestion.

Request body

Parameter

Type

Required

Example

Description

start

Integer

Yes

1589986800

The beginning of the time range to query. The time is accurate to seconds.

end

Integer

Yes

1589990340

The end of the time range to query. The time is accurate to seconds.

size

Integer

No

10

The number of queries to return.

Response parameters

Parameter Type Example Description
requestId String EB250CA0-ACFD-C5DE-17CD-01445BFE8AE5

The ID of the request.

result Struct

The return result.

appQuery String no data

The content of the optimization suggestion for the query.

end Integer 1589990340

The end of the time range that was queried.

index Integer 0

The ID of the optimization suggestion.

start Integer 1589986800

The beginning of the time range that was queried.

Examples

Sample requests

GET /v4/openapi/app-groups/kevintest2/optimizers/slow-query/categories/0/queries?end=1589990340&start=1589986800

Sample success responses

XML format

<requestId>EB250CA0-ACFD-C5DE-17CD-01445BFE8AE5</requestId>
<result>
    <start>1589986800</start>
    <end>1589990340</end>
    <index>0</index>
    <appQuery>no data</appQuery>
</result>

JSON format

{
    "requestId": "EB250CA0-ACFD-C5DE-17CD-01445BFE8AE5",
    "result": {
        "start": 1589986800,
        "end": 1589990340,
        "index": 0,
        "appQuery": "no data"
    }
}

Error codes

For a list of error codes, visit the API Error Center.