調(diào)用DescribeCacheAnalysisJob接口,查詢緩存分析任務(wù)詳情。
接口說明
使用該接口需滿足以下前提條件:
- 使用阿里云或 DAS 的 SDK 時,建議使用最新版本。
- 使用 SDK 調(diào)用 DAS 服務(wù)時,需要將地域指定為 cn-shanghai。
- 本接口只適用于 Redis 引擎。
說明
調(diào)用本接口可查詢實例緩存分析任務(wù)中排名前 500 的 Key 信息。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 實例 ID。 | r-bp18ff4a195d**** |
JobId | string | 是 | 緩存分析任務(wù) ID,您可通過調(diào)用 CreateCacheAnalysisJob 接口獲取返回參數(shù)的 JobId。 | sf79-sd99-sa37-**** |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"Code": "200",
"Data": {
"BigKeys": {
"KeyInfo": [
{
"Bytes": 12345,
"Count": 127,
"Db": 0,
"Encoding": "hashtable",
"ExpirationTimeMillis": 1596256542547,
"Key": "task_x****",
"NodeId": "r-x****-db-0",
"Type": "hash"
}
]
},
"BigKeysOfNum": {
"KeyInfo": [
{
"Bytes": 12345,
"Count": 127,
"Db": 0,
"Encoding": "hashtable",
"ExpirationTimeMillis": 1596256542547,
"Key": "task_x****",
"NodeId": "r-x****-db-0",
"Type": "hash"
}
]
},
"ExpiryKeysLevelCount": {
"ExpiryLevel": [
{
"AnalysisTs": 1717469347000,
"Level": 0,
"TotalBytes": 8064,
"TotalKeys": 62
}
]
},
"InstanceId": "r-bp18ff4a195d****",
"JobId": "sf79-sd99-sa37-****",
"KeyPrefixes": {
"Prefix": [
{
"Bytes": 12345,
"Count": 127,
"KeyNum": 123,
"Prefix": "task_",
"Type": "hash"
}
]
},
"Message": "Successful",
"NodeId": "r-x****-db-0",
"TaskState": "BACKUP",
"UnexBigKeysOfBytes": {
"KeyInfo": [
{
"Bytes": 12345,
"Count": 127,
"Db": 0,
"Encoding": "hashtable",
"ExpirationTimeMillis": 1596256542547,
"Key": "task_x****",
"NodeId": "r-x****-db-0",
"Type": "hash"
}
]
},
"UnexBigKeysOfNum": {
"KeyInfo": [
{
"Bytes": 12345,
"Count": 127,
"Db": 0,
"Encoding": "hashtable",
"ExpirationTimeMillis": 1596256542547,
"Key": "task_x****",
"NodeId": "r-x****-db-0",
"Type": "hash"
}
]
}
},
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | InvalidParams | The request parameters are invalid. | 請求參數(shù)錯誤 |
403 | NoPermission | You are not authorized to do this action. | 沒有權(quán)限執(zhí)行該操作 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內(nèi)容概要 | 操作 |
---|---|---|
2024-06-05 | OpenAPI 錯誤碼發(fā)生變更、OpenAPI 返回結(jié)構(gòu)發(fā)生變更 | 查看變更詳情 |
2023-03-30 | OpenAPI 錯誤碼發(fā)生變更、OpenAPI 返回結(jié)構(gòu)發(fā)生變更 | 查看變更詳情 |