调用DescribeCacheAnalysisReport查看Redis实例在指定日期的离线全量Key分析报告。

说明 为优化用户体验,云数据库Redis对缓存分析功能进行了升级,本接口已下线并由新的接口替代,详情请参见【通知】云数据库Redis原缓存分析OpenAPI接口下线

调用本接口时,实例必须满足以下条件:

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeCacheAnalysisReport

系统规定参数。取值:DescribeCacheAnalysisReport

RegionId String cn-hangzhou

实例所属的地域ID。

InstanceId String -bp1zxszhcgatnx****

实例ID。

Date String 2019-08-05Z

需要查询的日期,每次可查询一天的离线全量Key分析结果,格式为yyyy-MM-ddZ(UTC时间)。

AnalysisType String BigKey

分析类型,取值固定为BigKey

PageSize Integer 30

每页返回的记录数,取值:3050100

说明 默认值:30
PageNumbers Integer 1

需要返回的页码。

说明 如果该值大于返回结果的最大页数,则返回的大key结果为空。
NodeId String -bp1zxszhcgatnx****-db-0

集群版Redis实例的子节点ID。

说明 如果不设置将返回所有子节点的分析结果。

返回数据

名称 类型 示例值 描述
PageNumber Integer 1

当前页的页码。

PageSize Integer 30

每页显示的最大记录数。

RequestId String A057C066-C3F5-4CC9-9FE4-A8D8B0DC****

请求ID。

PageRecordCount Integer 30

当前页显示的记录数。

TotalRecordCount Integer 160

所有页的记录总数。

BigKeys Array of Object [{"db": "0", "qps": 0, "keyType": "list", "isExpired": "no", "analysisType": "BIGKEY", "key": "mylist", "memory": 1005377, "size": 200000}]

大key列表。

HotKeys Array of Object []

热点key列表。

说明 暂不支持热点key分析,无返回值。

示例

请求示例

https://r-kvstore.aliyuncs.com/?Action=DescribeCacheAnalysisReport
&AnalysisType=BigKey
&Date=2019-08-05Z
&InstanceId=r-bp1zxszhcgatnx****
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeCacheAnalysisReportResponse>
    <PageNumber>1</PageNumber>
	<TotalRecordCount>160</TotalRecordCount>
	<PageSize>30</PageSize>
	<RequestId>A057C066-C3F5-4CC9-9FE4-A8D8B0DC****</RequestId>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>list</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>mylist</key>
		<memory>1005377</memory>
		<size>200000</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:23124</key>
		<memory>970</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:167541</key>
		<memory>967</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:152015</key>
		<memory>958</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:30883</key>
		<memory>955</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:81031</key>
		<memory>953</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:152007</key>
		<memory>952</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:161880</key>
		<memory>951</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:194610</key>
		<memory>949</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:53620</key>
		<memory>948</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:23525</key>
		<memory>946</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:89333</key>
		<memory>946</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:23687</key>
		<memory>945</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:32653</key>
		<memory>945</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:72166</key>
		<memory>945</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:195881</key>
		<memory>944</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:160121</key>
		<memory>944</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:93626</key>
		<memory>944</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:138451</key>
		<memory>944</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:183732</key>
		<memory>943</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:143393</key>
		<memory>943</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:109289</key>
		<memory>943</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:153637</key>
		<memory>942</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:171049</key>
		<memory>942</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:53013</key>
		<memory>941</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:103664</key>
		<memory>941</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:180733</key>
		<memory>941</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:69766</key>
		<memory>941</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:125910</key>
		<memory>940</memory>
		<size>11</size>
	</BigKeys>
	<BigKeys>
		<db>0</db>
		<qps>0</qps>
		<keyType>hash</keyType>
		<isExpired>no</isExpired>
		<analysisType>BIGKEY</analysisType>
		<key>customer:10653</key>
		<memory>940</memory>
		<size>11</size>
	</BigKeys>
	<PageRecordCount>30</PageRecordCount>
</DescribeCacheAnalysisReportResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "PageNumber" : 1,
  "TotalRecordCount" : 160,
  "HotKeys" : [ ],
  "PageSize" : 30,
  "RequestId" : "A057C066-C3F5-4CC9-9FE4-A8D8B0DC****",
  "BigKeys" : [ {
    "db" : "0",
    "qps" : 0,
    "keyType" : "list",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "mylist",
    "memory" : 1005377,
    "size" : 200000
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:23124",
    "memory" : 970,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:167541",
    "memory" : 967,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:152015",
    "memory" : 958,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:30883",
    "memory" : 955,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:81031",
    "memory" : 953,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:152007",
    "memory" : 952,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:161880",
    "memory" : 951,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:194610",
    "memory" : 949,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:53620",
    "memory" : 948,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:23525",
    "memory" : 946,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:89333",
    "memory" : 946,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:23687",
    "memory" : 945,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:32653",
    "memory" : 945,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:72166",
    "memory" : 945,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:195881",
    "memory" : 944,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:160121",
    "memory" : 944,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:93626",
    "memory" : 944,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:138451",
    "memory" : 944,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:183732",
    "memory" : 943,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:143393",
    "memory" : 943,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:109289",
    "memory" : 943,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:153637",
    "memory" : 942,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:171049",
    "memory" : 942,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:53013",
    "memory" : 941,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:103664",
    "memory" : 941,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:180733",
    "memory" : 941,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:69766",
    "memory" : 941,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:125910",
    "memory" : 940,
    "size" : 11
  }, {
    "db" : "0",
    "qps" : 0,
    "keyType" : "hash",
    "isExpired" : "no",
    "analysisType" : "BIGKEY",
    "key" : "customer:10653",
    "memory" : 940,
    "size" : 11
  } ],
  "PageRecordCount" : 30
}

错误码

访问错误中心查看更多错误码。