根据条件获得JMeter采样器聚合数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
pts:GetJMeterSampleMetrics |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ReportId | string | 是 | 报告 ID。 | 7R4RE352 |
BeginTime | long | 否 | 开始时间。 | 1637157070000 |
EndTime | long | 否 | 结束时间。 | 1637157073000 |
SamplerId | integer | 否 | 采样器索引。从 0 开始,-1 返回全场景。 | 0 |
返回参数
示例
正常返回示例
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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | ReportNotExist | The report does not exist. | 报告不存在 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2021-11-23 | OpenAPI 错误码发生变更 | 查看变更详情 |
2021-11-19 | 新增 OpenAPI | 查看变更详情 |