Queries the suggestions that Optimization Master provides for 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 HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes my_app_group_name

The name of the application.

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.

sort

String

No

"max"

The sort type. Valid values:

  • max
  • avg
  • sum
  • queryProportion

Response parameters

Parameter Type Example Description
requestId String 4406F40B-A0A2-9D5D-531F-3B6936567584

The ID of the request.

result Struct

The return result.

analyzeStatus String "PENDING"

The status of the analysis. Valid values:

  • PENDING
  • SUCCESS
  • RUNNING
  • FAILED
  • N/A
end Integer 1589990340

The end of the time range that was queried.

start Integer 1589986800

The beginning of the time range that was queried.

Examples

Sample requests

GET /v3/openapi/app-groups/kevintest2/optimizers/slow-query/categories?end=1589990340&sort=max&start=1589986800

Sample success responses

XML format

<requestId>4406F40B-A0A2-9D5D-531F-3B6936567584</requestId>
<result>
    <analyzeStatus>PENDING</analyzeStatus>
    <start>1589986800</start>
    <end>1589990340</end>
</result>

JSON format

{
    "requestId": "4406F40B-A0A2-9D5D-531F-3B6936567584",
    "result": {
        "analyzeStatus": "PENDING",
        "start": 1589986800,
        "end": 1589990340
    }
}

Error codes

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