Memeriksa hot key Instans Redis.
Deskripsi operasi
Before you call this operation, take note of the following items:
-
If you use an Alibaba Cloud SDK, make sure that the aliyun-sdk-core version is later than V4.3.3. We recommend that you use the latest version.
-
The version of your Database Autonomy Service (DAS) SDK must be V1.0.2 or later.
-
If you use an SDK to call operations of DAS, you must set the region ID to cn-shanghai.
-
This operation is applicable only to ApsaraDB for Redis instances that meet the following requirements:
The ApsaraDB for Redis instance is a Community Edition instance that uses a major version of 4.0 or later or a performance-enhanced instance of the Enhanced Edition (Tair).
The ApsaraDB for Redis instance is updated to the latest minor version.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:DescribeHotKeys |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Instans Redis. |
r-bp18ff4a195d**** |
| NodeId |
string |
No |
ID shard data Instans Redis. |
r-x****-db-0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. Catatan
If the request is successful, Successful is returned. If the request fails, an error message that contains information such as an error code is returned. |
Successful |
| RequestId |
string |
The request ID. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Data |
object |
||
| HotKey |
array<object> |
The list of detailed information. |
|
|
object |
The result set. |
||
| Key |
string |
The key. |
abc:def:eng |
| Db |
integer |
The DB where the key is stored. |
0 |
| Hot |
string |
The access frequency of the key, which is the number of accesses per second. |
5500~6000 |
| KeyType |
string |
The type of the key. |
zset |
| Size |
integer |
The number of elements. |
2 |
| InBytes |
integer |
85766 |
|
| OutBytes |
integer |
1054688 |
|
| NodeId |
string |
r-x****-db-0 |
|
| Category |
string |
qps |
|
| Code |
string |
The status code. |
200 |
| Success |
string |
Indicates whether the request was successful.
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Data": {
"HotKey": [
{
"Key": "abc:def:eng",
"Db": 0,
"Hot": "5500~6000",
"KeyType": "zset",
"Size": 2,
"InBytes": 85766,
"OutBytes": 1054688,
"NodeId": "r-x****-db-0",
"Category": "qps"
}
]
},
"Code": "200",
"Success": "true"
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.