Lists the optimization suggestions for slow queries from Search Diagnosis.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:ListSlowQueryCategories |
*AppGroup
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/optimizers/slow-query/categories HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
my_app_group_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Request example
GET /v4/openapi/app-groups/kevintest2/optimizers/slow-query/categories?end=1589990340&sort=max&start=1589986800
Query parameters
| Parameter | Type | Required | Example | Description |
| start | Integer | Yes | 1589986800 | The start of the time range to query. This is a UNIX timestamp and is accurate to the second. |
| end | Integer | Yes | 1589990340 | The end of the time range to query. This is a UNIX timestamp and is accurate to the second. |
| sort | String | No | "max" | The sorting method.Valid values: - max: the maximum value - avg: the average value - sum: the total value - queryProportion: the query proportion |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
4406F40B-A0A2-9D5D-531F-3B6936567584 |
| result |
object |
The returned data. |
|
| start |
integer |
The start timestamp. |
1589986800 |
| analyzeStatus |
string |
The analysis status.
|
"PENDING" |
| end |
integer |
The end timestamp. |
1589990340 |
Examples
Success response
JSON format
{
"requestId": "4406F40B-A0A2-9D5D-531F-3B6936567584",
"result": {
"start": 1589986800,
"analyzeStatus": "\"PENDING\"",
"end": 1589990340
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.