Runs a stress testing task.

Database Autonomy Service (DAS) provides the intelligent stress testing feature. This feature checks whether your instances need to be scaled up or out to handle workloads during peak hours. For more information, see Intelligent stress testing.

Request parameters

Parameter Type Required Example Description
Action String Yes RunCloudBenchTask

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

ConsoleContext String No None

A hidden parameter.

TaskId String Yes e5cec704-0518-430f-8263-76f4dcds****

The ID of the task. To view the value of this parameter, you can call the DescribeCloudBenchTasks operation.

Response parameters

Parameter Type Example Description
Code String 200

The returned status code.

Message String Successful

The message returned for the request.

Note If the request was successful, Successful was returned. If the request failed, an error message such as an error code was returned.
RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2****

The ID of the request.

Success String true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
Data Array of PreCheckItem

The list of detailed information, including the error codes and the number of error messages.

PreCheckItem
Status String SUCCESS

The task status. Valid values:

  • SUCCESS: The task was successful.
  • IGNORED: The task was ignored.
  • RUNNING: The task is running.
  • EXCEPTION: The task failed.
Order Integer 0

The sequence number of the check item. Valid values: 0 to 10.

Code Integer 200

The returned status code.

Message String Successful

The message returned for the request.

Note If the request was successful, Successful was returned. If the request failed, an error message such as an error code was returned.
Name String BenchTargetChecker

The name of the check item. Valid values:

  • SqlArchiveStatusChecker: checks whether SQL Explorer is available.
  • BenchClientEnvChecker: checks whether the running environment for programs on the stress testing client is available.
  • SpecChecker: checks whether the destination instance type and the stress testing client type support this API operation.
  • SourceInstanceChecker: checks whether the account of the source instance is available and whether the source instance is connected to the destination instance.
  • BenchTargetChecker: checks whether the account of the destination instance is available and whether the source instance is connected to the destination instance.
Details String "Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }

The detailed information about the check item.

Examples

Sample requests

http(s)://das.cn-shanghai.aliyuncs.com/?Action=RunCloudBenchTask
&ConsoleContext=None
&TaskId=e5cec704-0518-430f-8263-76f4dcds****
&<Common request parameters>

Sample success responses

XML format

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

<RunCloudBenchTaskResponse>
    <Code>200</Code>
    <Message>Successful</Message>
    <RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2****</RequestId>
    <Success>true</Success>
    <Data>
        <Status>SUCCESS</Status>
        <Order>0</Order>
        <Code>200</Code>
        <Message>Successful</Message>
        <Name>BenchTarget</Name>
        <Details>"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }</Details>
    </Data>
</RunCloudBenchTaskResponse>

JSON format

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

{
  "Code" : "200",
  "Message" : "Successful",
  "RequestId" : "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Success" : "true",
  "Data" : [ {
    "Status" : "SUCCESS",
    "Order" : 0,
    "Code" : 200,
    "Message" : "Successful",
    "Name" : "BenchTarget",
    "Details" : "\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }"
  } ]
}

Error codes

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