Queries partition diagnostic information for an AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeTablePartitionDiagnose |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
am-bp1xxxxxxxx47 |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| Order |
string |
No |
The sort order for query results. Specify the value in JSON format. Example:
Note
If you do not specify this parameter, query results are sorted by TotalSize in descending order. |
[{\"Field\":\"TotalSize\",\"Type\":\"Desc\"}] |
| RegionId |
string |
No |
The region ID of the cluster. |
cn-hangzhou |
| Lang |
string |
No |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| TotalCount |
integer |
The total number of entries returned. |
1 |
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| PageNumber |
integer |
The page number. |
1 |
| DBClusterId |
string |
The cluster ID. |
am-bp1xxxxxxxx47 |
| SuggestMaxRecordsPerPartition |
integer |
The recommended maximum number of rows in each list partition. |
640000000 |
| SuggestMinRecordsPerPartition |
integer |
The recommended minimum number of rows in each list partition. |
64000000 |
| Items |
array<object> |
The table statistics. |
|
|
object |
|||
| TableName |
string |
The table name. |
test_table |
| PartitionDetail |
string |
The details of partitions that have issues. |
202005,202006 |
| SchemaName |
string |
The database name. |
test_db |
| PartitionNumber |
integer |
The number of partitions in the table. |
2 |
| SpaceRatio |
number |
The storage percentage of the table, in %. Note
Formula: Storage percentage = Total data size of the table / Total data size of the cluster × 100%. |
66.23 |
| TotalSize |
integer |
The total data size of the table, in bytes. |
42949672960 |
| DetectionItems |
array<object> |
The detection items and results. |
|
|
object |
|||
| Name |
string |
The detection item name. |
Improper Partition Field Diagnosis |
| Message |
string |
The detection result. |
A total of 10 tables have an improper partition field |
| Status |
string |
The severity level of the detection result. Valid values:
|
WARNING |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.