更新时间:2023.04.11 16:11:01
调用GetReqListPerAction接口获取指定Action发生的请求列表。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 请求名称。 |
Version | String | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
common | object of common | 是 | - | 通用参数。 |
time_filter | object of time_filter | 是 | - | 时间区间。 |
filter_conditions | object of filter_conditions | 否 | - | 筛选条件。 |
action_type | string | 是 |
| Action类型。调用 |
pid | string | 是 |
| 页面ID。调用 |
action_target_name | int32 | 是 |
| Action名字。调用 |
metric_type | string | 否 |
| 耗时指标统计方式。
|
order_by | string | 否 |
| 排序依据。
|
pgsz | int32 | 否 |
| 每页大小。默认为1。 |
pgno | int32 | 否 |
| 页数。默认为1。 |
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
start_time | int32 | 是 |
| 起始时间。 |
end_time | int32 | 是 |
| 终止时间。 |
granularity | int32 | 是 |
| 聚合时间粒度。 |
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
aid | int64 | 是 |
| 应用ID。 |
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
type | string | 否 |
| 筛选条件类型。
|
children | object of children | 否 | - | 当type值为and时必填。 |
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
op | string | 是 |
| 条件符号,可选值有eq,neq,lt,lte,gt,gte,in,not_in,regex,not_regex。 |
field | string | 是 |
| 条件字段,可选值集合由 |
values | []string | 是 |
| 条件值,可选值集合由 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
err_detail | int32 | - | 错误详情。 |
data | object | - | 返回内容。 |
error_msg | string | - | 错误信息。 |
error_no | int |
| 错误码。0为成功。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
result | object of result | - | 结果数据。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
domain | string |
| 请求域名。 |
path | string |
| 请求路径。 |
duration | int |
| 请求耗时统计值。 |
duration_trend | object of duration_trend | - | 请求耗时趋势。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
fields | object of fields | - | 展示的指标。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
dataType | string |
| 数据类型。 |
name | string |
| 请求的指标。 |
source | object |
| 与field对应的值。 |
POST https://open.volcengineapi.com/?Action=GetReqListPerAction&Version=2022-10-12 { "common":{ "aid":12345 }, "time_filter":{ "start_time":1664621845, "end_time":1665140253, "granularity":86400 }, "action_type":"click", "pid":"数据探索", "action_target_name":"描述", "metric_type":"avg", "filter_conditions":{ "type":"and", "children":[ { "op":"in", "field":"pid", "values":[ "数据探索" ] } ] }, "pgsz":20, "pgno":1, "order_by":"count_descend" }
{ "err_detail":"", "data":{ "result":[ { "domain":"demo.volcengine.net", "path":"/api_web/common/field_values", "duration":26, "duration_trend":{ "fields":[ { "id":"date", "dataType":"string", "name":"" }, { "id":"count", "dataType":"number", "name":"请求时间" } ], "source":[ [ "1664553600", "641" ], [ "1665158400", "0" ] ] } } ] }, "error_msg":"", "error_no":0 }