文档

GetJMeterSampleMetrics - JMeter采样器聚合数据

更新时间:

根据条件获得JMeter采样器聚合数据。

调试

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

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
pts:GetJMeterSampleMetrics
  • 全部资源
    *

请求参数

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

报告 ID。

7R4RE352
BeginTimelong

开始时间。

1637157070000
EndTimelong

结束时间。

1637157073000
SamplerIdinteger

采样器索引。从 0 开始,-1 返回全场景。

0

返回参数

名称类型描述示例值
object

返回示例。

RequestIdstring

请求 ID。

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

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

SampleMetricListarray

采样器聚合数据列表。

string

采样器聚合数据列表。

[ { "statusCodes":[ { "count":26, "name":"200" } ], "reqFailureRtMin":0, "requestBps":2389, "requestBytes":3536, "reqSuccessCount":26, "reqSuccessRtMin":12, "reqSuccessRtAvg":21, "reqSuccessTps":17.56756756756757, "rtMin":12, "rtAvg":21, "totalCount":26, "concurrency":103.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":64922, "reqFailureTps":0.0, "tps":17.56756756756757, "responseBps":43866, "reqSuccessRtMax":30, "totalVum":13, "rtMax":30, "taskId":1475183, "timestamp":1649681740000 }, { "statusCodes":[ { "count":13, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1782, "requestBytes":5304, "reqSuccessCount":13, "reqSuccessRtMin":11, "reqSuccessRtAvg":23, "reqSuccessTps":13.10483870967742, "rtMin":11, "rtAvg":24, "totalCount":13, "concurrency":411.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":97383, "reqFailureTps":0.0, "tps":13.10483870967742, "responseBps":32723, "reqSuccessRtMax":37, "totalVum":21, "rtMax":37, "taskId":1475183, "timestamp":1649681741000 }, { "statusCodes":[ { "count":7, "name":"200" } ], "reqFailureRtMin":0, "requestBps":952, "requestBytes":6256, "reqSuccessCount":7, "reqSuccessRtMin":19, "reqSuccessRtAvg":20, "reqSuccessTps":7.0, "rtMin":19, "rtAvg":20, "totalCount":7, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":114862, "reqFailureTps":0.0, "tps":7.0, "responseBps":17479, "reqSuccessRtMax":21, "totalVum":29, "rtMax":21, "taskId":1475183, "timestamp":1649681742000 }, { "statusCodes":[ { "count":12, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1632, "requestBytes":7888, "reqSuccessCount":12, "reqSuccessRtMin":15, "reqSuccessRtAvg":24, "reqSuccessTps":12.0, "rtMin":15, "rtAvg":25, "totalCount":12, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":144826, "reqFailureTps":0.0, "tps":12.0, "responseBps":29964, "reqSuccessRtMax":45, "totalVum":38, "rtMax":45, "taskId":1475183, "timestamp":1649681743000 }, { "statusCodes":[ { "count":10, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1360, "requestBytes":9248, "reqSuccessCount":10, "reqSuccessRtMin":14, "reqSuccessRtAvg":21, "reqSuccessTps":10.0, "rtMin":14, "rtAvg":22, "totalCount":10, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":169796, "reqFailureTps":0.0, "tps":10.0, "responseBps":24970, "reqSuccessRtMax":29, "totalVum":46, "rtMax":29, "taskId":1475183, "timestamp":1649681744000 }, { "statusCodes":[ { "count":9, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1224, "requestBytes":10472, "reqSuccessCount":9, "reqSuccessRtMin":11, "reqSuccessRtAvg":23, "reqSuccessTps":9.0, "rtMin":11, "rtAvg":23, "totalCount":9, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":192269, "reqFailureTps":0.0, "tps":9.0, "responseBps":22473, "reqSuccessRtMax":45, "totalVum":54, "rtMax":45, "taskId":1475183, "timestamp":1649681745000 }, { "statusCodes":[ { "count":14, "name":"200" } ], "reqFailureRtMin":0, "requestBps":1904, "requestBytes":12376, "reqSuccessCount":14, "reqSuccessRtMin":10, "reqSuccessRtAvg":20, "reqSuccessTps":14.0, "rtMin":10, "rtAvg":21, "totalCount":14, "concurrency":500.0, "bucket":"d9fb4ee42f0e8eb3", "reqFailureCount":0, "reqFailureRtMax":0, "responseBytes":227227, "reqFailureTps":0.0, "tps":14.0, "responseBps":34958, "reqSuccessRtMax":34, "totalVum":63, "rtMax":34, "taskId":1475183, "timestamp":1649681746000 }]
SamplerMapobject

采样器列表,可根据该列表传递需要查询的采样器。

{0:"Http Request"}
Codestring

系统状态码。

200
Successboolean

是否成功。

  • true:成功
  • false:失败
true

示例

正常返回示例

JSON格式

{
  "RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
  "Message": "空",
  "SampleMetricList": [
    "[       {         \"statusCodes\":[           {             \"count\":26,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":2389,         \"requestBytes\":3536,         \"reqSuccessCount\":26,         \"reqSuccessRtMin\":12,         \"reqSuccessRtAvg\":21,         \"reqSuccessTps\":17.56756756756757,         \"rtMin\":12,         \"rtAvg\":21,         \"totalCount\":26,         \"concurrency\":103.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":64922,         \"reqFailureTps\":0.0,         \"tps\":17.56756756756757,         \"responseBps\":43866,         \"reqSuccessRtMax\":30,         \"totalVum\":13,         \"rtMax\":30,         \"taskId\":1475183,         \"timestamp\":1649681740000       },       {         \"statusCodes\":[           {             \"count\":13,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":1782,         \"requestBytes\":5304,         \"reqSuccessCount\":13,         \"reqSuccessRtMin\":11,         \"reqSuccessRtAvg\":23,         \"reqSuccessTps\":13.10483870967742,         \"rtMin\":11,         \"rtAvg\":24,         \"totalCount\":13,         \"concurrency\":411.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":97383,         \"reqFailureTps\":0.0,         \"tps\":13.10483870967742,         \"responseBps\":32723,         \"reqSuccessRtMax\":37,         \"totalVum\":21,         \"rtMax\":37,         \"taskId\":1475183,         \"timestamp\":1649681741000       },       {         \"statusCodes\":[           {             \"count\":7,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":952,         \"requestBytes\":6256,         \"reqSuccessCount\":7,         \"reqSuccessRtMin\":19,         \"reqSuccessRtAvg\":20,         \"reqSuccessTps\":7.0,         \"rtMin\":19,         \"rtAvg\":20,         \"totalCount\":7,         \"concurrency\":500.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":114862,         \"reqFailureTps\":0.0,         \"tps\":7.0,         \"responseBps\":17479,         \"reqSuccessRtMax\":21,         \"totalVum\":29,         \"rtMax\":21,         \"taskId\":1475183,         \"timestamp\":1649681742000       },       {         \"statusCodes\":[           {             \"count\":12,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":1632,         \"requestBytes\":7888,         \"reqSuccessCount\":12,         \"reqSuccessRtMin\":15,         \"reqSuccessRtAvg\":24,         \"reqSuccessTps\":12.0,         \"rtMin\":15,         \"rtAvg\":25,         \"totalCount\":12,         \"concurrency\":500.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":144826,         \"reqFailureTps\":0.0,         \"tps\":12.0,         \"responseBps\":29964,         \"reqSuccessRtMax\":45,         \"totalVum\":38,         \"rtMax\":45,         \"taskId\":1475183,         \"timestamp\":1649681743000       },       {         \"statusCodes\":[           {             \"count\":10,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":1360,         \"requestBytes\":9248,         \"reqSuccessCount\":10,         \"reqSuccessRtMin\":14,         \"reqSuccessRtAvg\":21,         \"reqSuccessTps\":10.0,         \"rtMin\":14,         \"rtAvg\":22,         \"totalCount\":10,         \"concurrency\":500.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":169796,         \"reqFailureTps\":0.0,         \"tps\":10.0,         \"responseBps\":24970,         \"reqSuccessRtMax\":29,         \"totalVum\":46,         \"rtMax\":29,         \"taskId\":1475183,         \"timestamp\":1649681744000       },       {         \"statusCodes\":[           {             \"count\":9,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":1224,         \"requestBytes\":10472,         \"reqSuccessCount\":9,         \"reqSuccessRtMin\":11,         \"reqSuccessRtAvg\":23,         \"reqSuccessTps\":9.0,         \"rtMin\":11,         \"rtAvg\":23,         \"totalCount\":9,         \"concurrency\":500.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":192269,         \"reqFailureTps\":0.0,         \"tps\":9.0,         \"responseBps\":22473,         \"reqSuccessRtMax\":45,         \"totalVum\":54,         \"rtMax\":45,         \"taskId\":1475183,         \"timestamp\":1649681745000       },       {         \"statusCodes\":[           {             \"count\":14,             \"name\":\"200\"           }         ],         \"reqFailureRtMin\":0,         \"requestBps\":1904,         \"requestBytes\":12376,         \"reqSuccessCount\":14,         \"reqSuccessRtMin\":10,         \"reqSuccessRtAvg\":20,         \"reqSuccessTps\":14.0,         \"rtMin\":10,         \"rtAvg\":21,         \"totalCount\":14,         \"concurrency\":500.0,         \"bucket\":\"d9fb4ee42f0e8eb3\",         \"reqFailureCount\":0,         \"reqFailureRtMax\":0,         \"responseBytes\":227227,         \"reqFailureTps\":0.0,         \"tps\":14.0,         \"responseBps\":34958,         \"reqSuccessRtMax\":34,         \"totalVum\":63,         \"rtMax\":34,         \"taskId\":1475183,         \"timestamp\":1649681746000       }]"
  ],
  "SamplerMap": {
    "test": "test",
    "test2": 1
  },
  "Code": "200",
  "Success": true
}

错误码

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

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

变更历史

变更时间变更内容概要操作
2021-11-23OpenAPI 错误码发生变更查看变更详情
2021-11-19新增 OpenAPI查看变更详情