You need to enable JavaScript to run this app.
导航
GetAppExceptionIssueList
最近更新时间:2024.07.15 16:31:28首次发布时间:2023.03.13 16:59:23

获取App端崩溃分析、MetricKit、崩溃防护、自定义错误、卡顿分析相关的issue列表。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=GetAppExceptionIssueList&Version=2022-10-12
ServiceName: apmplus_openapi
Region: cn-beijing
X-App-Ids: xxx
Content-Type: application/json

请求参数

Query

参数类型是否必选示例值描述
ActionStringGetAppExceptionIssueList接口名称。当前 API 的名称为 GetAppExceptionIssueList
VersionString2022-10-12接口版本。当前 API 的版本为 2022-10-12

Body

参数类型是否必选示例值描述
aidInteger123456应用ID。
start_timeInteger1665417600开始时间。
end_timeInteger1665504000终止时间。

biz_type

String

crash

异常类型。

  • crash:崩溃
  • crash_defend:崩溃防护
  • lag:卡顿
  • custom_exception:自定义异常
  • metric_kit:MetricKit
filtersObject of Condition-筛选条件,可以指定多个键值对来筛选数据。

is_new

Integer

0

是否新增issue。

  • 0:不是新增issue
  • 1:是新增issue
tokenString-搜索关键字。
page_noInteger1页号。
page_sizeInteger10每页项数。

order_by

String

crash_user_ascend

排序。

  • crash_user_ascend:用户数升序
  • crash_user_descend:用户数降序
  • crash_count_ascend:上报量升序
  • crash_count_descend:上报量降序
  • latest_report_time_ascend:最近上报时间升序
  • latest_report_time_descend:最近上报时间降序

status

Array of String

["pending"]

issue状态,支持多个。

  • pending:未修复
  • processing:修复中
  • ignored:已忽略
  • solved:已修复
  • reopen:重复出现
managersArray of Long-按责任人筛选,传用户ID列表。
tagsArray of Long-标签。

time_type

String

-

时间类型。

  • api_time:上报时间(默认)
  • event_time:发生时间

Condition

参数类型是否必选示例值描述

op

String

in

操作符。

  • gt:大于
  • gte:大于等于
  • lt:小于
  • lte:小于等于
  • eq:等于
  • neq:不等于
  • in:包含
  • not_in:不包含
  • lk:模糊匹配特定模式的数据
  • nlk:排除模糊匹配的数据

type

String

expression

筛选条件类型。

  • expression:当前condition是一个表达式。
  • and:当前condition是一个复合表达式,多个sub_condition的逻辑关系是and。
  • or:当前condition是一个复合表达式,多个sub_condition的逻辑关系是or。
  • map:当前condition是map类型。
valueStringAndroid筛选值。
valuesArray of String["Android"]筛选值,支持多个。
map_keyStringkey_1map类型key,当type为map时必填。
dimensionStringaid条件的名称。
sub_conditionsArray of Condition-子条件。

返回参数

参数类型示例值描述
dataObject of SearchResponseData-返回数据。
error_msgString-错误信息。
error_noInteger0错误码。

SearchResponseData

参数类型示例值描述
totalInteger10列表总数。
resultArray of IssuePageItem-列表详情。

IssuePageItem

参数类型示例值描述
issue_idString7e753d***b0267issue ID。

crash_type

String

anr

崩溃类型。

  • java:Java崩溃
  • launch:Java启动崩溃
  • native:Native崩溃
  • anr:ANR
  • crash:崩溃
  • watch_dog:卡死
  • oom_crash:OOM崩溃
  • extension:Extension崩溃

os

String

Android

操作系统。

  • Android
  • iOS
titleString-子标题。
event_detailString-崩溃内容。
block_duration_avgLong0平均卡顿时长。
block_duration_avg_compareDouble0平均卡顿时长变化率。
latest_crash_timeLong1677829093865最近发生时间。
latest_report_timeLong1677829112000最近上报时间。
crash_countInteger21崩溃次数。
crash_count_compareDouble20崩溃次数变化率。
crash_userInteger1崩溃人数。
crash_user_compareDouble0崩溃人数变化率。
crash_ratioDouble0.00021714852959424247崩溃率。
crash_ratio_compareDouble25.16552922198784崩溃率变化率。
crash_user_ratioDouble0.0004885197850512946崩溃用户率。
crash_user_ratio_compareDouble0.3634587200781632崩溃用户率变化率。
start_app_versionString1.0开始版本。
end_app_versionString1.0结束版本。
stackObject of ParsedStack-堆栈相关信息。
crash_line_numString217崩溃行号。
issueObject of IssueInfo-issue状态相关信息,目前包括责任人和状态。
report_cnt_per_lanuchLong-CPU单次启动上报次数。
avg_process_cpu_rateLong-CPU平均进程使用率。

ParsedStack

参数类型示例值描述
briefStringCrash due to null object reference堆栈的简要描述。
titleStringNullPointerException堆栈标题。
detailStringat com.example.myapp.MainActivity.onCreate堆栈详情。

IssueInfo

参数类型示例值描述
idLong1234567issue在mysql里的ID,不同于issue_id。
tagArray of Tags-标签。

status

String

processing

issue状态。

  • pending:未修复
  • processing:修复中
  • ignored:已忽略
  • solved:已修复
  • reopen:重复出现
managersArray of IssueManager-责任人。
fixed_versionString-修复版本号。

Tags

参数类型示例值描述
idLong301tag ID。
keyStringcomponenttag key。
valuesArray of ValueId-tag value。

IssueManager

参数类型示例值描述
nameStringadmin-1处理人名称。
user_idLong1处理人ID。

ValueId

参数类型示例值描述
idLong201tag valueID。
valueStringproductiontag value。

请求示例

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
}

错误码

本接口无特有的错误码。更多信息请参见错误码