Manually creates a cache analytics task.

Note Alibaba Cloud has optimized the cache analytics feature of ApsaraDB for Redis to improve user experience. This API operation is phased out. You can use the new API operation for cache analytics. For more information, see API operations for cache analytics are upgraded.

Before you call this operation, make sure that the following requirements are met:

After you call this operation, you can call the DescribeCacheAnalysisReport operation to view the analytic result.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateCacheAnalysisTask

The operation that you want to perform. Set the value to CreateCacheAnalysisTask.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the ApsaraDB for Redis instance. You can call the DescribeInstances operation to query instance IDs.

RegionId String No cn-hangzhou

The ID of the region to which the ApsaraDB for Redis instance belongs. You can call the DescribeInstances operation to query region IDs.

Response parameters

Parameter Type Example Description
RequestId String BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=CreateCacheAnalysisTask
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format

<CreateCacheAnalysisTaskResponse>
      <RequestId>BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****</RequestId>
</CreateCacheAnalysisTaskResponse>

JSON format

{
    "RequestId": "BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****"
}

Error codes

For a list of error codes, visit the API Error Center.