調用DescribeHotBigKeys接口,實時獲取當前內存中的熱Key和大Key。
接口說明
對數據結構為 List、Hash、Set、Zset 的 Key,按照 Key 中元素的數量排序并展示排名前 3 的 Key,記錄為大 Key;當某個 Key 的 QPS 大于 3,000 時會被記錄為熱點 Key。
- 在使用阿里云 SDK 時,需要保證 aliyun-sdk-core 的版本大于 4.3.3,建議使用最新版本。
- 使用 DAS 的 SDK 的版本為 1.0.2 或以上。
- 在使用 SDK 調用 DAS 服務時,需要將地域指定為 cn-shanghai。
- 本接口只適用于如下 Redis 實例:
- 實例為社區版(5.0 及以上版本)或企業版(性能增強型)。
- 實例的小版本為最新。
說明
關于如何查詢小版本、升級小版本,詳情請參見 ModifyInstanceMinorVersion 、 DescribeEngineVersion 。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ConsoleContext | string | 否 | 備用參數。 | None |
InstanceId | string | 是 | Redis 實例 ID,您可以調用 DescribeInstances 接口獲取。 | r-bp18ff4a195d**** |
NodeId | string | 否 | Redis 實例的數據分片 ID,您可以調用 DescribeRoleZoneInfo 接口獲取。 | r-****-db-0 |
返回參數
示例
正常返回示例
JSON
格式
{
"Code": "200",
"Data": {
"BigKeyMsg": "current version doesn't support",
"BigKeys": {
"BigKey": [
{
"Db": 0,
"Key": "abc:def:eng",
"KeyType": "zset",
"NodeId": "r-x****-db-0",
"Size": 2
}
]
},
"HotKeyMsg": "current version doesn't support",
"HotKeys": {
"HotKey": [
{
"Db": 0,
"Hot": "5500~6000",
"Key": "abc:def:eng",
"KeyType": "zset",
"Lfu": 253,
"NodeId": "r-x****-db-0"
}
]
}
},
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | InvalidParams | The request parameters are invalid. | 請求參數錯誤 |
403 | NoPermission | You are not authorized to do this action. | 沒有權限執行該操作 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史