文档

GetJMeterSceneRunningData - 获得压测运行时数据

更新时间:

根据场景ID获取JMeter场景压测过程中的数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
SceneIdstring

场景 ID。

DYYPZIH

返回参数

名称类型描述示例值
object

返回示例。

Messagestring

错误提示信息,若成功则为空。

RequestIdstring

请求 ID。

A8E16480-15C1-555A-922F-B736A005E52D
Codestring

系统状态码。

200
Successboolean

是否成功。

  • true:成功
  • false:失败
true
HttpStatusCodeinteger

HTTP 状态码。

200
DocumentUrlstring

文档链接。

RunningDataobject

运行中的数据。

SceneIdstring

场景 ID。

DYYPZIH
ErrorMessagestring

压测流程的失败信息

引擎租用失败
ReportIdstring

压测任务 id,也即报告 id

DYYPLDKS
HasErrorboolean

压测流程是否出错

false
SceneNamestring

场景名称。

test
HoldForinteger

压测计划持续时间,单位为 s。

600
AgentCountinteger

压测引擎数量。

2
AgentIdListarray

压测引擎列表。

string

压测引擎列表。

["116.19.153.94_3088020"]
Concurrencyinteger

并发量。

1000
HasReportboolean

当前是否已经生成报告。

false
IsDebuggingboolean

是否调试。

false
Statusstring

场景压测状态。

RUNNING
Vumlong

目前消耗的 VUM。

100
StartTimeTSlong

压测计划开始时间戳,单位为 ms。

1639970040000
StageNamestring

当前所处阶段。

任务执行
AllSampleStatobject

场景整体的采样状态。

{ "failTps":0,"successRtAvg":33,"successRtMin":29,"successRtSum":99407, "rtAvg":33.459104678559406,"rtMin":29,"failRtMax":0,"duration":997, "samplerId":-1, "successRtMax":133,"fullStat":{ "requestBytesSum":629926,"successRtAvg":33,"successRtMin":29,"successRtSum":174551,"count":5206,"rtSeg99":53, "successTps":2397.9732842008293,"rtSeg90":36, "rtSeg50":32, "rtSeg99Sum":53,"rtAvg":33.528812908182864, "rtMin":29, "failRtMax":0,"duration":2171, "successCount":5206, "rtSegStatCount":1,"tps":2397.9732842008293 }, "successCount":2971, "failRtSum":0,"failCount":0,"count":2971,"concurrency":100, "successTps":2979.939819458375,"tps":2979.939819458375,"failRtAvg":0, "failRtMin":0, "rtMax":133}
SampleStatListobject []

每一个采样器的状态。

object

每一个采样器的状态。

{ "failTps":0,"successRtAvg":33,"successRtMin":29,"successRtSum":99407, "rtAvg":33.459104678559406,"rtMin":29,"failRtMax":0,"duration":997, "samplerId":-1, "successRtMax":133,"fullStat":{ "requestBytesSum":629926,"successRtAvg":33,"successRtMin":29,"successRtSum":174551,"count":5206,"rtSeg99":53, "successTps":2397.9732842008293,"rtSeg90":36, "rtSeg50":32, "rtSeg99Sum":53,"rtAvg":33.528812908182864, "rtMin":29, "failRtMax":0,"duration":2171, "successCount":5206, "rtSegStatCount":1,"tps":2397.9732842008293 }, "successCount":2971, "failRtSum":0,"failCount":0,"count":2971,"concurrency":100, "successTps":2979.939819458375,"tps":2979.939819458375,"failRtAvg":0, "failRtMin":0, "rtMax":133}

示例

正常返回示例

JSON格式

{
  "Message": "空",
  "RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
  "Code": "200",
  "Success": true,
  "HttpStatusCode": 200,
  "DocumentUrl": "空",
  "RunningData": {
    "SceneId": "DYYPZIH",
    "ErrorMessage": "引擎租用失败",
    "ReportId": "DYYPLDKS",
    "HasError": false,
    "SceneName": "test",
    "HoldFor": 600,
    "AgentCount": 2,
    "AgentIdList": [
      "[\"116.19.153.94_3088020\"]"
    ],
    "Concurrency": 1000,
    "HasReport": false,
    "IsDebugging": false,
    "Status": "RUNNING",
    "Vum": 100,
    "StartTimeTS": 1639970040000,
    "StageName": "任务执行",
    "AllSampleStat": {
      "failTps": 0,
      "successRtAvg": 33,
      "successRtMin": 29,
      "successRtSum": 99407,
      "rtAvg": 33.459104678559406,
      "rtMin": 29,
      "failRtMax": 0,
      "duration": 997,
      "samplerId": -1,
      "successRtMax": 133,
      "fullStat": {
        "requestBytesSum": 629926,
        "successRtAvg": 33,
        "successRtMin": 29,
        "successRtSum": 174551,
        "count": 5206,
        "rtSeg99": 53,
        "successTps": 2397.9732842008293,
        "rtSeg90": 36,
        "rtSeg50": 32,
        "rtSeg99Sum": 53,
        "rtAvg": 33.528812908182864,
        "rtMin": 29,
        "failRtMax": 0,
        "duration": 2171,
        "successCount": 5206,
        "rtSegStatCount": 1,
        "tps": 2397.9732842008293
      },
      "successCount": 2971,
      "failRtSum": 0,
      "failCount": 0,
      "count": 2971,
      "concurrency": 100,
      "successTps": 2979.939819458375,
      "tps": 2979.939819458375,
      "failRtAvg": 0,
      "failRtMin": 0,
      "rtMax": 133
    },
    "SampleStatList": [
      {
        "failTps": 0,
        "successRtAvg": 33,
        "successRtMin": 29,
        "successRtSum": 99407,
        "rtAvg": 33.459104678559406,
        "rtMin": 29,
        "failRtMax": 0,
        "duration": 997,
        "samplerId": -1,
        "successRtMax": 133,
        "fullStat": {
          "requestBytesSum": 629926,
          "successRtAvg": 33,
          "successRtMin": 29,
          "successRtSum": 174551,
          "count": 5206,
          "rtSeg99": 53,
          "successTps": 2397.9732842008293,
          "rtSeg90": 36,
          "rtSeg50": 32,
          "rtSeg99Sum": 53,
          "rtAvg": 33.528812908182864,
          "rtMin": 29,
          "failRtMax": 0,
          "duration": 2171,
          "successCount": 5206,
          "rtSegStatCount": 1,
          "tps": 2397.9732842008293
        },
        "successCount": 2971,
        "failRtSum": 0,
        "failCount": 0,
        "count": 2971,
        "concurrency": 100,
        "successTps": 2979.939819458375,
        "tps": 2979.939819458375,
        "failRtAvg": 0,
        "failRtMin": 0,
        "rtMax": 133
      }
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
403ReportNotExistThe report does not exist.报告不存在

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-12-06OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:403
出参OpenAPI 返回结构发生变更
2021-12-20OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:403
出参OpenAPI 返回结构发生变更
2021-11-23OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
    新增错误码:403
2021-11-19新增 OpenAPI看变更集