You need to enable JavaScript to run this app.
导航

GetAppExceptionIssueEventList

最近更新时间2024.01.19 14:48:35

首次发布时间2023.03.13 16:59:23

调用GetAppExceptionIssueEventList接口获取App端崩溃分析、MetricKit、崩溃防护、自定义错误、卡顿分析相关的指定崩溃issue的具体事件列表。

使用说明

  • 接口名称:GetAppExceptionIssueEventList
  • 请求方式:POST
  • 接口地址:/?Action=GetAppExceptionIssueEventList&Version=2022-10-12

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

string

GetAppExceptionIssueEventList

请求名称。

Version

string

2022-10-12

请求版本。

ServiceName : apmplus_openapi
Region : cn-beijing 
X-App-Ids : xxx
Content-Type : application/json

Body

参数

类型

是否必选

示例值

描述

aid

i32

123456

应用ID。

crash_type

string

anr

崩溃类型。

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

issue_id

string

5be87da***d0468a3

issue ID。

start_time

i32

1678356000

开始时间。

end_time

i32

1678442576

终止时间。

biz_type

string

crash

异常类型。

  • crash:崩溃
  • crash_defend:崩溃防护
  • lag:卡顿
  • custom_exception:自定义异常
  • metric_kit:MetricKit

filters

object of filters

-

筛选条件。

page_no

i32

1

页号。

page_size

i32

1

每页项数。

is_new

i32

0

是否新增issue。

  • 0:不是新增issue
  • 1:是新增issue

token

string

-

搜索关键字。

time_type

string

-

时间类型。

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

filters

参数

类型

是否必选

示例值

描述

type

string

expression

筛选条件类型。

  • expression:表达式
  • map:映射
  • and:且条件
  • or:或条件

op

string

in

操作符。

  • in:包含

dimension

string

os

条件的名称。

  • crash_type:崩溃类型
  • app_version:App版本
  • is_oom:是否oom
  • os_version:系统版本
  • device_model:机型
  • update_version_code:App小版本号
  • channel:下载渠道
  • os:系统
  • city:城市
  • province:省份
  • process_name:进程名
  • last_scene:App页面
  • npth_version:APM SDK版本
  • is_jailbroken:越狱状态
  • bddid:设备ID
  • host_app_id:App名称

values

array of string

[
"Android"
]

筛选值,支持多个。

value

string

Android

筛选值。

map_key

string

key_1

map类型key,当type为map时必填。

sub_conditions

array of sub_conditions

-

子条件。

sub_conditions

参数

类型

是否必选

示例值

描述

type

string

expression

筛选条件类型。

  • expression:表达式
  • map:映射
  • and:且条件
  • or:或条件

op

string

in

操作符。

  • in:包含

dimension

string

aid

条件的名称。

  • crash_type:崩溃类型
  • app_version:App版本
  • is_oom:是否oom
  • os_version:系统版本
  • device_model:机型
  • update_version_code:App小版本号
  • channel:下载渠道
  • os:系统
  • city:城市
  • province:省份
  • process_name:进程名
  • last_scene:App页面
  • npth_version:APM SDK版本
  • is_jailbroken:越狱状态
  • bddid:设备ID
  • host_app_id:App名称

values

array of string

["Android"]

筛选值,支持多个。

value

string

Android

筛选值。

map_key

string

key_1

map类型key,当type为map时必填。

sub_conditions

array of string

-

子条件。

返回参数

参数

类型

示例值

描述

data

object of data

-

返回数据。

error_msg

string

-

错误信息。

error_no

i32

0

错误码。

data

参数

类型

示例值

描述

result

array of result

-

崩溃列表数据。

total

i32

4

崩溃列表中的崩溃数据个数。

result

参数

类型

示例值

描述

api_time

i64

1678421027000

上报时间。

event_time

i64

1678421016596

客户端发生时间。

aid

i32

123456

App ID。

bddid

string

7528***360

设备ID。

user_id

string

-

用户ID。

app_version

string

9.9.9

App版本。

sdk_version

string

-

SDK版本,仅SDK监控有效。

npth_version

string

1.4.5-alpha.1-grey

APM SDK版本。

update_version_code

string

999

小版本号。

channel

string

grey

渠道。

device_model

string

vivo X9s Plus L

设备类型。

rom

string

Funtouch OS_4.0_PD1635_A_8.20.20

ROM。

os_version

string

8.1.0

操作系统版本。

region

string

CN

区域。

process_name

string

com.ss.android.article.news

崩溃进程。

is_background

i8

0

是否后台。

filters

string

-

自定义tag。如果您在接入SDK时,配置了崩溃时上传自定义数据,将通过这个字段返回这些自定义的数据。

event_id

string

2e718***27d861"

event ID,一次崩溃的标识符。

issue_id

string

5be87***0468a3

issue ID。

app_display_name

string

今日头条

应该显示名称。

is_jailbroken

i8

0

是否越狱,仅选择iOS系统时,需要填写此字段。

is_launch_crash

i8

0

是否启动崩溃。

is_parsed

i8

0

是否解析成功。

stack

object of stack

-

崩溃堆栈。

ensure_type

string

-

自定义错误类型。

in_app_time

i64

163348

使用时长。

alog_url

array of string

-

Alog文件地址。

gwpasan_type

string

-

GWPAsan类型。

stack

参数

类型

示例值

描述

title

string

-

堆栈标题。

brief

string

-

堆栈的简要描述。

detail

string

-

堆栈详情。

请求示例

POST https://open.volcengineapi.com/?Action=GetAppExceptionIssueEventList&Version=2022-10-12 

{
    "aid":123456,
    "biz_type":"crash",
    "start_time":1678356000,
    "end_time":1678442576,
    "filters":{
        "type":"and",
        "sub_conditions":[
            {
                "dimension":"os",
                "op":"in",
                "type":"expression",
                "values":[
                    "Android"
                ]
            }
        ]
    },
    "issue_id":"5be87da***d0468a3",
    "crash_type":"anr",
    "page_size":1,
    "page_no":1
}

返回示例

正常返回示例

{
    "err_detail":"",
    "data":{
        "result":[
            {
                "api_time":1678421027000,
                "event_time":1678421016596,
                "aid":123456,
                "device_id":0,
                "bddid":"7528***360",
                "user_id":"",
                "app_version":"9.9.9",
                "sdk_version":"",
                "sdk_minor_version":"",
                "npth_version":"1.4.5-alpha.1-grey",
                "update_version_code":"999",
                "channel":"grey",
                "device_model":"vivo X9s Plus L",
                "rom":"Funtouch OS_4.0_PD1635_A_8.20.20",
                "os_version":"8.1.0",
                "region":"CN",
                "process_name":"com.ss.android.article.news",
                "is_background":0,
                "filters":{
                    "anrType":"normal",
                    "anr_reason":"Input dispatching timed out",
                    "sdk_version":"1.4.5-alpha.1-grey"
                },
                "event_id":"2e718***27d861",
                "issue_id":"5be87***0468a3",
                "launch_id":"",
                "app_display_name":"今日头条",
                "is_jailbroken":0,
                "is_launch_crash":0,
                "is_parsed":1,
                "stack":{
                    "title":"android.os.MessageQueue",
                    "brief":"",
                    "detail":"\"main\" prio=5 tid=1 Native\n| group=\"main\" sCount=1 dsCount=0 flags=1 obj=0x72755c48 self=0x764b4c3e00\n| sysTid=3577 nice=-10 cgrp=default sched=0/0 handle=0x76d0d869a8\n| state=S schedstat=( 12214570830 10228768255 37993 ) utm=692 stm=529 core=4 HZ=100\n| stack=0x7fd1701000-0x7fd1703000 stackSize=8MB\n| held mutexes=\nkernel: __switch_to+0x78/0x84\nkernel: futex_wait_queue_me+0xe0/0x144\nkernel: futex_wait+0xf0/0x208\nkernel: do_futex+0xc8/0x8dc\nkernel: SyS_futex+0xf0/0x16c\nkernel: cpu_switch_to+0x270/0x2d0\nnative: #00 pc 000000000001dcac  /system/lib64/libc.so (syscall+28)\nnative: #01 pc 00000000000e701c  /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+152)\nnative: #02 pc 0000000000345448  /system/lib64/libart.so (art::JNI::CallObjectMethod(_JNIEnv*, _jobject*, _jmethodID*, ...)+552)\nnative: #03 pc 00000000000eaa90  /system/lib64/libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync(long, int, unsigned int)+48)\nnative: #04 pc 0000000000040664  /system/lib64/libandroidfw.so (android::DisplayEventDispatcher::handleEvent(int, int, void*)+164)\nnative: #05 pc 0000000000016054  /system/lib64/libutils.so (android::Looper::pollInner(int)+856)\nnative: #06 pc 0000000000015c74  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+108)\nnative: #07 pc 0000000000111910  /system/lib64/libandroid_runtime.so (???)\nnative: #08 pc 00000000001e9dbc  /system/framework/arm64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+140)\nat android.os.MessageQueue.nativePollOnce(MessageQueue.java)\nat android.os.MessageQueue.next(MessageQueue.java:329)\nat android.os.Looper.loop(Looper.java:150)\nat android.app.ActivityThread.main(ActivityThread.java:6871)\nat java.lang.reflect.Method.invoke(Method.java)\nat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:525)\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:825)"
                }
            }
        ],
        "total":4
    },
    "error_msg":"",
    "error_no":0
}

异常返回示例

{
    "ResponseMetadata": {
        "RequestId": "201806*****2280022D30",
        "Action": "GetAppExceptionIssueEventList",
        "Version": "2022-10-12",
        "Service": "***",
        "Region": "cn-north-1",
        "Error": {
            "Code": "200000",
            "Message": "参数异常"
        }
    }
}