更新时间:2024-11-28 GMT+08:00
分享

查询用例的AW曲线图

功能介绍

查询用例的AW曲线图

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v2/{project_id}/task-run-infos/{task_run_id}/case-run-infos/{case_run_id}/detail/{detail_id}/chart

表1 路径参数

参数

是否必选

参数类型

描述

task_run_id

Integer

运行任务ID,即报告ID。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务ID。

case_run_id

Integer

运行用例ID,通过报告管理中的“当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].testcaseId为索引为index的运行用例ID。

detail_id

String

运行用例详情ID,通过报告管理中的“当前任务用例列表”接口获取:使用运行任务ID(task_run_id)作为路径参数,可以查询到该报告关联的运行用例详情ID集合,即返回结构体中result.case_aw_info_list[index].id为索引为index的运行用例详情ID(detail_id)。

project_id

String

项目ID,获取方式请参见获取项目ID

请求参数

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

code

String

响应码

message

String

响应消息

extend

Object

扩展字段

result

TaskCaseAwChartResult object

测试报告曲线图详细信息

表3 TaskCaseAwChartResult

参数

参数类型

描述

broken_list

BrokenList object

曲线图数据详情

err_message

String

错误信息

resp_time_range

Map<String,String>

响应时间区间与出现次数的汇总信息

表4 BrokenList

参数

参数类型

描述

brand_brokens

BrandBrokens object

带宽曲线数据

commonTimestamps

Array of strings

时间戳

performance_load

Object

摸高数据

respcode_brokens

RespcodeBrokens object

响应码曲线数据

rtmp_brokens

RtmpBrokens object

RTMP曲线数据

streaming_error_brokens

StreamingErrorBrokens object

流媒体错误曲线数据

tps_brokens

TpsBrokens object

tps、响应时间曲线数据

vusers_brokens

VusersBrokens object

vusers曲线数据

表5 BrandBrokens

参数

参数类型

描述

recBytes

Array of doubles

接收字节数

sentBytes

Array of doubles

发送字节数

表6 RespcodeBrokens

参数

参数类型

描述

checkPointFailed

Array of doubles

校验失败

error

Array of doubles

异常请求

othersFailed

Array of doubles

其他失败

parsedFailed

Array of doubles

解析失败

refusedFailed

Array of doubles

连接被拒

success

Array of doubles

成功请求

timeout

Array of doubles

超时失败

表7 RtmpBrokens

参数

参数类型

描述

audioRecBytes

Array of doubles

音频接收字节数

audioSentBytes

Array of doubles

音频发送字节数

rtmpReceivedPackets

Array of doubles

RTMP接收数据包数

rtmpSentPackets

Array of doubles

RTMP发送数据包数

videoRecBytes

Array of doubles

视频接收字节数

videoSentBytes

Array of doubles

视频发送字节数

表8 StreamingErrorBrokens

参数

参数类型

描述

createStreamFailed

Array of doubles

创建流媒体失败数

handShakeFailed

Array of doubles

建立握手失败数

parseFileFailed

Array of doubles

文件解析失败数

parseFlvFileFailed

Array of doubles

FLV文件解析失败数

playFailed

Array of doubles

播放失败数

publishFailed

Array of doubles

发布失败数

retryFailed

Array of doubles

重试失败数

rtmpConnectFailed

Array of doubles

RTMP连接失败数

tcpConnectFailed

Array of doubles

TCP连接失败数

表9 TpsBrokens

参数

参数类型

描述

average

Array of doubles

平均响应时间

tps

Array of doubles

tps

表10 VusersBrokens

参数

参数类型

描述

vusers

Array of doubles

虚拟用户数

请求示例

查询用例的AW曲线图,任务运行id是1,任务运行id是1,请求AW的详情ID是{detail_id}。

/v2/{project_id}/task-run-infos/1/case-run-infos/1/detail/{detail_id}/chart

响应示例

状态码: 200

获取用例的AW曲线图响应对象

{
  "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"
    }
  }
}

状态码

状态码

描述

200

获取用例的AW曲线图响应对象

错误码

请参见错误码

相关文档