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:
|
| 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:
|
| 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:
|
| 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.