Queries the information about partition diagnostics.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of the cluster. | am-bp1xxxxxxxx47 |
PageSize | integer | No | The number of entries to return on each page. Default value: 30. Valid values:
| 30 |
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
Order | string | No | The order by which to sort query results. Specify the parameter value in the JSON string format. Example:
Note
If you do not specify this parameter, the query results are sorted by the TotalSize field in descending order.
| [{\"Field\":\"TotalSize\",\"Type\":\"Desc\"}] |
RegionId | string | Yes | The region ID. | cn-hangzhou |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"PageSize": 30,
"PageNumber": 1,
"DBClusterId": "am-bp1xxxxxxxx47",
"SuggestMaxRecordsPerPartition": 640000000,
"SuggestMinRecordsPerPartition": 64000000,
"Items": [
{
"TableName": "test_table",
"PartitionDetail": "202005,202006",
"SchemaName": "test_db",
"PartitionNumber": 2,
"SpaceRatio": 66.23,
"TotalSize": 42949672960
}
],
"DetectionItems": [
{
"Name": "Improper Partition Field Diagnosis\n",
"Message": "A total of 10 tables have an improper partition field\n",
"Status": "WARNING"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-17 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |