Retrieves partition access frequency and data hotspot information for a PolarDB-X 2.0 instance.
Operation description
We recommend that you do not call this operation because the response uses a special format that is complex to parse. Instead, use the heatmap feature of Database Autonomy Service (DAS) to view this data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:GetPartitionsHeatmap |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConsoleContext |
string |
No |
The reserved parameter. |
None |
| InstanceId |
string |
No |
The instance ID. |
pxc-hzrciqy62c**** |
| TimeRange |
string |
No |
The query time range. Valid values:
|
LAST_SIX_HOURS |
| Type |
string |
No |
The data type to query. Valid values:
|
WRITTEN_ROWS_WITH_DN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The response message. Note
If the request was successful, Successful is returned. If the request failed, an error message such as an error code is returned. |
Successful |
| Data |
string |
The partition hotspot data of the PolarDB-X 2.0 instance, in JSON format. |
{ "boundAxis": [ { "bound": "A,B,C,D", "labels": [ "L1", "L2", "L3", "L4" ], "rows": 3171 }, { "bound": "A,B,C,D", "labels": [ "L1", "L2", "L3", "L4" ], "rows": 277128 } ], "dataMap": { "READ_WRITTEN_ROWS": [ [ 0, 0, 0 ], [ 0, 0, 0 ] ] }, "timeAxis": [ 1671701056070, 1671701116551, 1671701177020 ] } |
| RequestId |
string |
The request ID. |
D00DB161-FEF6-5428-B37A-8D29A4C2**** |
| Success |
string |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "Successful",
"Data": "{\n \"boundAxis\": [\n {\n \"bound\": \"A,B,C,D\",\n \"labels\": [\n \"L1\",\n \"L2\",\n \"L3\",\n \"L4\"\n ],\n \"rows\": 3171\n },\n {\n \"bound\": \"A,B,C,D\",\n \"labels\": [\n \"L1\",\n \"L2\",\n \"L3\",\n \"L4\"\n ],\n \"rows\": 277128\n }\n ],\n \"dataMap\": {\n \"READ_WRITTEN_ROWS\": [\n [\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0\n ]\n ]\n },\n \"timeAxis\": [\n 1671701056070,\n 1671701116551,\n 1671701177020\n ]\n}",
"RequestId": "D00DB161-FEF6-5428-B37A-8D29A4C2****",
"Success": "true"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.