更新时间:2023.05.10 14:58:40
调用GetAppTrend接口获取App端崩溃分析、MetricKit、崩溃防护、自定义错误、卡顿分析相关数据的趋势,例如崩溃分析数、崩溃率、崩溃用户数、崩溃用户率、PV、UV。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | string | 是 |
| 请求名称。 |
Version | string | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
aid | i32 | 否 |
| 应用ID。 |
os | string | 否 |
| 操作系统。
|
start_time | i32 | 是 |
| 开始时间。 |
end_time | i32 | 是 |
| 终止时间。 |
compare_start_time | i32 | 否 |
| 对比开始时间。 |
compare_end_time | i32 | 否 |
| 对比终止时间。 |
biz_type | string | 是 |
| 异常类型。
|
filters | object of filters | 否 | - | 筛选条件。 |
granularity | i32 | 否 |
| 聚合度,单位分钟。 |
group_by_field | string | 否 | - | 分组字段,不分组的情况下传空字符串。 |
metric | string | 是 |
| 指标名。
|
from | string | 否 | - | 是否来自于其他模块。
|
status | array of string | 否 |
| issue状态,支持多个。
|
crash_type | string | 是 |
| 崩溃类型。
|
tags | array of string | 否 | - | 标签。 |
token | string | 否 | - | 搜索关键字。 |
is_new | i32 | 否 |
| 是否新增issue。
|
managers | array of string | 否 | - | 按责任人筛选,传用户ID列表。 |
time_type | string | 否 | - | 时间类型。
|
is_custom | boolean | 否 |
| 是否是自定义维度。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
type | string | 否 |
| 筛选条件类型。
|
op | string | 否 |
| 操作符。
|
dimension | string | 否 |
| 条件的名称。 |
values | array of string | 否 |
| 筛选值,支持多个。 |
value | string | 否 |
| 筛选值。 |
map_key | string | 否 |
| map类型的key,当type为map时必填。 |
sub_conditions | array of sub_conditions | 否 | - | 子条件。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
type | string | 否 |
| 筛选条件类型。
|
op | string | 否 |
| 操作符。
|
dimension | string | 否 |
| 条件的名称。 |
values | array of string | 否 |
| 筛选值,支持多个。 |
value | string | 否 |
| 筛选值。 |
map_key | string | 否 |
| map类型key,当type为map时必填。 |
sub_conditions | array of string | 否 | - | 子条件。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | string | - | key为指标名,对应request里的metric。 |
error_msg | string | - | 错误信息。 |
error_no | i32 |
| 错误码。 |
POST https://open.volcengineapi.com/?Action=GetAppTrend&Version=2022-10-12 { "aid":123456, "os":"Android", "start_time":1677772800, "end_time":1678442865, "compare_start_time":1677102735, "compare_end_time":1677772800, "granularity":1440, "status":[ "pending" ], "filters":{ "type":"and", "sub_conditions":[ { "dimension":"os", "op":"in", "type":"expression", "values":[ "Android" ] } ] }, "biz_type":"crash", "crash_type":"anr", "metric":"crash_count" }
{ "err_detail":"", "data":[ { "name":"", "points":[ { "timestamp":1677772800, "readable_timestamp":"2023-03-03 00:00:00", "value":61, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1677859200, "readable_timestamp":"2023-03-04 00:00:00", "value":15, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1677945600, "readable_timestamp":"2023-03-05 00:00:00", "value":23, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1678032000, "readable_timestamp":"2023-03-06 00:00:00", "value":18, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1678118400, "readable_timestamp":"2023-03-07 00:00:00", "value":24, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1678204800, "readable_timestamp":"2023-03-08 00:00:00", "value":27, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1678291200, "readable_timestamp":"2023-03-09 00:00:00", "value":47, "alert":{ "alert":false, "msg":"" } }, { "timestamp":1678377600, "readable_timestamp":"2023-03-10 00:00:00", "value":23, "alert":{ "alert":false, "msg":"" } } ], "total":238 } ], "error_msg":"", "error_no":0 }
{ "ResponseMetadata": { "RequestId": "20180***80022D30", "Action": "GetAppTrend", "Version": "2022-10-12", "Service": "***", "Region": "cn-north-1", "Error": { "Code": "200000", "Message": "参数异常" } }