功能介绍:根据任务ID查询大key、热key记录。
GET https://[endpoint].ctapi.ctyun.cn/v1/keyAnalysisMgrServant/describeKeyTaskRecord
Content-Type:application/ form-data
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
prodInstId | 873780530431132672 | String | 是 | 实例ID |
taskId | 20220901112928 | String | 是 | 任务ID |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
code | core.ok | String | 响应码描述 |
returnObj | Object | 响应对象 | |
returnObj.status | success | String | 节点状态 |
returnObj.time | 20220901112618 | String | 查询时间 |
returnObj.keyNodes | Object | 热key和大key对象的集合 | |
returnObj.keyNodes.nodeUrl | 10.50.208.7:25276 | String | 节点url |
returnObj.keyNodes.queryCount | > 10000 | String | 请求次数 |
returnObj.keyNodes.counter | 154 | int | 频次 |
returnObj.keyNodes.db | 22 | int | key所在分组db |
returnObj.keyNodes.key | yekeytest-60-49900-x | String | 要查询的key |
message | success | String | 响应信息 |
statusCode | 800 | int | 响应状态码 |
returnObj:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
status | success | String | 任务状态 |
time | 20220901112618 | String | 任务开始查询时间 |
keyNodes | List |
热key(HotKeyNode)和大key(BigKeyNpde)对象的集合 | |
returnObj.keyNodes.nodeUrl | 10.50.208.7:25276 | String | 节点url |
returnObj.keyNodes.queryCount | > 10000 | String | 请求次数 |
returnObj.keyNodes.counter | 154 | int | 频次 |
returnObj.keyNodes.db | 22 | int | key所在分组db |
returnObj.keyNodes.key | yekeytest-60-49900-x | String | 要查询的key |
HotKeyNode:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
key | yekeytest-60-49900-x | String | 要查询的key |
queryCount | > 10000 | String | 请求次数 |
counter | 154 | int | 频次 |
db | 22 | int | 热key所在分组db |
nodeUrl | 10.50.208.7:25276 | String | 热key所在节点的url |
BigKeyNode:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
key | yekeytest-60-49900-x | String | 要查询的key |
keyType | String | String | Key的类型 |
size | 1540 | long | 大小,对应String类型的key,则是统计key大小;对于list,hash,set,zset类型的key则是统计成员数据; |
db | 22 | int | 热key所在分组db |
nodeUrl | 10.50.208.7:25276 | String | 热key所在节点的url |
请求示例:
GET https://dcs2-global.ctapi.ctyun.cn/v1/keyAnalysisMgrServant/describeKeyTaskRecord?prodInstId=873780530431132672&taskId=20220901112928
返回示例:
{
"code": "core.ok",
"returnObj": {
"status": "success",
"time": "20220901112618",
"keyNodes": [
{
"nodeUrl": "10.50.208.7:25276",
"queryCount": "> 10000",
"counter": 154,
"db": 22,
"key": "yekeytest-60-49900-x"
}
]
},
"message": "success",
"statusCode": 800
}