Querying the AW Curve Chart of a Case
Function
This API is used to query the AW curve chart of a case.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
codeartsperftest:cpts:getPerfTestTask
Read
cpts *
g:ResourceTag/<tag-key>
-
-
URI
GET /v2/{project_id}/task-run-infos/{task_run_id}/case-run-infos/{case_run_id}/detail/{detail_id}/chart
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
task_run_id |
Yes |
Integer |
ID of a running task, that is, the report ID. When a task API (for updating task status or starting or stopping tasks in batches) is called, the running task ID is returned. |
|
case_run_id |
Yes |
Integer |
Running case ID. You can use the running task ID (task_run_id) as the path parameter to call the API for querying the case list of the specified task (see "Report Management") to obtain the ID set of the running cases associated with the report, and then use result.case_aw_info_list[index].testcaseId as the index to locate the running case ID in the response structure. |
|
detail_id |
Yes |
String |
Running case detail ID. You can use the running task ID (task_run_id) as the path parameter to call the API for querying the case list of the specified task (see "Report Management") to obtain the ID set of the running case details associated with the report, and then use result.case_aw_info_list[index].id as the index to locate the running case detail ID (detail_id) in the response structure. |
|
project_id |
Yes |
String |
Project ID. For details, see Method of obtaining instructions. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Status code. |
|
message |
String |
Response. |
|
extend |
Object |
Extended field. |
|
result |
TaskCaseAwChartResult object |
Test report curve details. |
|
Parameter |
Type |
Description |
|---|---|---|
|
broken_list |
BrokenList object |
Curve chart data details. |
|
err_message |
String |
Error message. |
|
resp_time_range |
Map<String,String> |
Summary of response time ranges and occurrence times. |
|
Parameter |
Type |
Description |
|---|---|---|
|
brand_brokens |
BrandBrokens object |
Bandwidth curve data. |
|
commonTimestamps |
Array of strings |
Timestamp. |
|
performance_load |
Object |
Expected data. |
|
respcode_brokens |
RespcodeBrokens object |
Response code curve data. |
|
rtmp_brokens |
RtmpBrokens object |
RTMP curve data. |
|
streaming_error_brokens |
StreamingErrorBrokens object |
Streaming media error curve data. |
|
tps_brokens |
TpsBrokens object |
TPS and response time curve data. |
|
vusers_brokens |
VusersBrokens object |
Vuser curve data. |
|
Parameter |
Type |
Description |
|---|---|---|
|
recBytes |
Array of doubles |
Number of received bytes. |
|
sentBytes |
Array of doubles |
Number of sent bytes. |
|
Parameter |
Type |
Description |
|---|---|---|
|
checkPointFailed |
Array of doubles |
Verification failed. |
|
error |
Array of doubles |
The request is abnormal. |
|
othersFailed |
Array of doubles |
Other failures. |
|
parsedFailed |
Array of doubles |
Parsing failed. |
|
refusedFailed |
Array of doubles |
The connection is rejected. |
|
success |
Array of doubles |
The request is successful. |
|
timeout |
Array of doubles |
Timeout failure. |
|
Parameter |
Type |
Description |
|---|---|---|
|
audioRecBytes |
Array of doubles |
Received audio bytes. |
|
audioSentBytes |
Array of doubles |
Sent audio bytes. |
|
rtmpReceivedPackets |
Array of doubles |
Data packets received by RTMP. |
|
rtmpSentPackets |
Array of doubles |
Data packets sent by RTMP. |
|
videoRecBytes |
Array of doubles |
Received video bytes. |
|
videoSentBytes |
Array of doubles |
Sent video bytes. |
|
Parameter |
Type |
Description |
|---|---|---|
|
createStreamFailed |
Array of doubles |
Streaming media creation failures. |
|
handShakeFailed |
Array of doubles |
Handshake establishment failures. |
|
parseFileFailed |
Array of doubles |
Files that fail to be parsed. |
|
parseFlvFileFailed |
Array of doubles |
FLV files that fail to be parsed. |
|
playFailed |
Array of doubles |
Playback failures. |
|
publishFailed |
Array of doubles |
Failed releases. |
|
retryFailed |
Array of doubles |
Failed retries. |
|
rtmpConnectFailed |
Array of doubles |
RTMP connection failures. |
|
tcpConnectFailed |
Array of doubles |
TCP connection failures. |
Example Requests
Querying the AW curve chart of the case. The task running ID is 1, and the request AW details ID is {detail_id}.
/v2/{project_id}/task-run-infos/1/case-run-infos/1/detail/{detail_id}/chart
Example Responses
Status code: 200
Response object for obtaining the AW curve of a case.
{
"code" : "SVCSTG.CPTS.0000000",
"message" : "success",
"extend" : null,
"result" : {
"broken_list" : {
"brand_brokens" : {
"recBytes" : [ 0, 4656, 4656, 4656, 4656, 4656, 4656, 4753, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4753, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656, 4656 ],
"sentBytes" : [ 0, 2688, 2688, 2688, 2688, 2688, 2688, 2744, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2744, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688, 2688 ]
},
"commonTimestamps" : [ "2023-05-04 17:24:44", "2023-05-04 17:24:45", "2023-05-04 17:24:46", "2023-05-04 17:24:47", "2023-05-04 17:24:48", "2023-05-04 17:24:49", "2023-05-04 17:24:50", "2023-05-04 17:24:51", "2023-05-04 17:24:52", "2023-05-04 17:24:53", "2023-05-04 17:24:54", "2023-05-04 17:24:55", "2023-05-04 17:24:56", "2023-05-04 17:24:57", "2023-05-04 17:24:58", "2023-05-04 17:24:59", "2023-05-04 17:25:00", "2023-05-04 17:25:01", "2023-05-04 17:25:02", "2023-05-04 17:25:03", "2023-05-04 17:25:04", "2023-05-04 17:25:05", "2023-05-04 17:25:06", "2023-05-04 17:25:07", "2023-05-04 17:25:08", "2023-05-04 17:25:09", "2023-05-04 17:25:10", "2023-05-04 17:25:11", "2023-05-04 17:25:12", "2023-05-04 17:25:13", "2023-05-04 17:25:14", "2023-05-04 17:25:15", "2023-05-04 17:25:16", "2023-05-04 17:25:17", "2023-05-04 17:25:18", "2023-05-04 17:25:19", "2023-05-04 17:25:20", "2023-05-04 17:25:21", "2023-05-04 17:25:22", "2023-05-04 17:25:23", "2023-05-04 17:25:24", "2023-05-04 17:25:25", "2023-05-04 17:25:26", "2023-05-04 17:25:27", "2023-05-04 17:25:28", "2023-05-04 17:25:29", "2023-05-04 17:25:30", "2023-05-04 17:25:31", "2023-05-04 17:25:32", "2023-05-04 17:25:33", "2023-05-04 17:25:34", "2023-05-04 17:25:35", "2023-05-04 17:25:36", "2023-05-04 17:25:37", "2023-05-04 17:25:38", "2023-05-04 17:25:39", "2023-05-04 17:25:40", "2023-05-04 17:25:41", "2023-05-04 17:25:42", "2023-05-04 17:25:43", "2023-05-04 17:25:44" ],
"performance_load" : { },
"respcode_brokens" : {
"checkPointFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"error" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"othersFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"parsedFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"refusedFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"success" : [ 0, 48, 48, 48, 48, 48, 48, 49, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ],
"timeout" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
},
"rtmp_brokens" : {
"audioRecBytes" : [ ],
"audioSentBytes" : [ ],
"rtmpReceivedPackets" : [ ],
"rtmpSentPackets" : [ ],
"videoRecBytes" : [ ],
"videoSentBytes" : [ ]
},
"streaming_error_brokens" : {
"createStreamFailed" : [ ],
"handShakeFailed" : [ ],
"parseFileFailed" : [ ],
"parseFlvFileFailed" : [ ],
"playFailed" : [ ],
"publishFailed" : [ ],
"retryFailed" : [ ],
"rtmpConnectFailed" : [ ],
"tcpConnectFailed" : [ ]
},
"tps_brokens" : {
"average" : [ 0, 20.1, 20, 20, 20, 20, 20.04, 20, 20, 20, 20, 20, 20.02, 20, 20, 20, 20, 20.06, 20.02, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20.02, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20.02, 20.13, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20.02, 20, 20, 20, 20 ],
"tps" : [ 0, 48, 48, 48, 48, 48, 48, 49, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48 ]
},
"vusers_brokens" : {
"vusers" : [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
}
},
"err_message" : null,
"resp_time_range" : {
"0~50ms" : "2882",
"1~2s" : "0",
"200~500ms" : "0",
"2~3s" : "0",
"3~4s" : "0",
"4~5s" : "0",
"500ms~1s" : "0",
"50~200ms" : "0",
">5s" : "0"
}
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response object for obtaining the AW curve of a case. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot