更新时间:2023.05.10 14:58:40
调用GetAppExceptionIssueList接口获取App端崩溃分析、MetricKit、崩溃防护、自定义错误、卡顿分析相关的issue列表。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | string | 是 |
| 请求名称。 |
Version | string | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
aid | i32 | 否 |
| 应用ID。 |
start_time | i32 | 否 |
| 开始时间。 |
end_time | i32 | 否 |
| 终止时间。 |
biz_type | string | 否 |
| 异常类型。
|
filters | object of filters | 否 | - | 筛选条件。 |
is_new | i32 | 否 |
| 是否新增issue。
|
token | string | 否 | - | 搜索关键字。 |
page_no | i32 | 否 |
| 页号。 |
page_size | i32 | 否 |
| 每页项数。 |
order_by | string | 否 |
| 排序。
|
status | array of string | 否 |
| issue状态,支持多个。
|
managers | array of string | 否 | - | 按责任人筛选,传用户ID列表。 |
tags | array of string | 否 | - | 标签。 |
time_type | string | 否 | - | 时间类型。
|
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
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 | object of data | - | 返回数据。 |
error_msg | string | - | 错误信息。 |
error_no | i32 |
| 错误码。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | array of result | - | 崩溃列表数据。 |
total | i32 |
| 崩溃列表中的崩溃数据个数。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
issue_id | string |
| issue ID。 |
crash_type | string |
| 崩溃类型。
|
os | string |
| 操作系统。
|
title | string | - | 子标题。 |
event_detail | string | - | 崩溃内容。 |
block_duration_avg | i64 |
| 平均卡顿时长。 |
block_duration_avg_compare | double |
| 平均卡顿时长变化率。 |
latest_crash_time | i64 |
| 最近发生时间。 |
latest_report_time | i64 |
| 最近上报时间。 |
crash_count | i32 |
| 崩溃次数。 |
crash_count_compare | double |
| 崩溃次数变化率。 |
crash_user | i32 |
| 崩溃人数。 |
crash_user_compare | double |
| 崩溃人数变化率。 |
crash_ratio | double |
| 崩溃率。 |
crash_ratio_compare | double |
| 崩溃率变化率。 |
crash_user_ratio | double |
| 崩溃用户率。 |
crash_user_ratio_compare | double |
| 崩溃用户率变化率。 |
start_app_version | string |
| 开始版本。 |
end_app_version | string |
| 结束版本。 |
stack | object of stack | - | 堆栈相关信息。 |
crash_line_num | string |
| 崩溃行号。 |
issue | object of issue | - | issue状态相关信息,目前包括责任人和状态。 |
report_cnt_per_lanuch | i64 | - | CPU单次启动上报次数。 |
avg_process_cpu_rate | i64 | - | CPU平均进程使用率。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
title | string |
| 堆栈标题。 |
brief | string | - | 堆栈的简要描述。 |
detail | string | - | 堆栈详情。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | i64 |
| issue在mysql里的ID,不同于issue_id。 |
managers | array of managers | - | 责任人。 |
status | string |
| issue状态。 |
tag | array of tag | - | 标签。 |
fixed_version | string | - | 修复版本号。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
name | string |
| 处理人名称。 |
user_id | i64 |
| 处理人ID。 |
POST https://open.volcengineapi.com/?Action=GetAppExceptionIssueList&Version=2022-10-12 { "aid":123456, "start_time":1677772800, "end_time":1678442865, "filters":{ "type":"and", "sub_conditions":[ { "dimension":"os", "op":"in", "type":"expression", "values":[ "Android" ] } ] }, "biz_type":"crash", "order_by":"crash_user_ascend", "status":[ "pending" ], "page_no":1, "page_size":1 }
{ "err_detail":"", "data":{ "result":[ { "issue_id":"7e753d***b0267", "crash_type":"anr", "os":"Android", "title":"", "event_detail":"", "block_duration_avg":"0", "block_duration_avg_compare":0, "latest_crash_time":"1677829093865", "latest_report_time":"1677829112000", "crash_count":21, "crash_count_compare":20, "crash_user":1, "crash_user_compare":0, "crash_ratio":0.00021714852959424247, "crash_ratio_compare":25.16552922198784, "crash_user_ratio":0.0004885197850512946, "crash_user_ratio_compare":0.3634587200781632, "start_app_version":"1.0", "end_app_version":"1.0", "stack":{ "title":"com.example.crash.test.MonitorCrashActivity", "brief":"", "detail":"\"main\" prio=5 tid=1 Sleeping\n| group=\"main\" sCount=1 dsCount=0 flags=1 obj=0x70f50458 self=0xf165ce00\n| sysTid=18721 nice=-10 cgrp=default sched=0/0 handle=0xf1c1fdc0\n| state=S schedstat=( 1593032647 271433213 2620 ) utm=126 stm=31 core=5 HZ=100\n| stack=0xff5d4000-0xff5d6000 stackSize=8192KB\n| held mutexes=\nat java.lang.Thread.sleep(Thread.java)\n- sleeping on <0x0c824559> (a java.lang.Object)\nat java.lang.Thread.sleep(Thread.java:440)\n- locked <0x0c824559> (a java.lang.Object)\nat java.lang.Thread.sleep(Thread.java:356)\nat android.os.SystemClock.sleep(SystemClock.java:131)\nat com.example.crash.test.MonitorCrashActivity.onClick(MonitorCrashActivity.java:217)\nat java.lang.reflect.Method.invoke(Method.java)\nat android.view.View$DeclaredOnClickListener.onClick(View.java:6108)\nat android.view.View.performClick(View.java:7259)\nat android.view.View.performClickInternal(View.java:7236)\nat android.view.View.access$3600(View.java:801)\nat android.view.View$PerformClick.run(View.java:27892)\nat android.os.Handler.handleCallback(Handler.java:883)\nat android.os.Handler.dispatchMessage(Handler.java:100)\nat android.os.Looper.loop(Looper.java:214)\nat android.app.ActivityThread.main(ActivityThread.java:7356)\nat java.lang.reflect.Method.invoke(Method.java)\nat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)" }, "crash_line_num":"217", "issue":{ "id":"1234567", "managers":[ { "name":"admin-1", "user_id":"1" } ], "status":"processing", "tag":[ ], "fixed_version":"" } } ], "total":12 }, "error_msg":"", "error_no":0 }
{ "ResponseMetadata": { "RequestId": "201806*****0232280022D30", "Action": "GetAppExceptionIssueList", "Version": "2022-10-12", "Service": "***", "Region": "cn-north-1", "Error": { "Code": "200000", "Message": "参数异常" } } }