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

PCCrashEventList

最近更新时间2024.05.07 20:48:37

首次发布时间2022.11.15 20:38:47

调用PCCrashEventList接口查看详情页事件列表。

请求说明

  • 请求方式:POST
  • 请求地址:/?Action=PCCrashEventList&Version=2022-10-28
ServiceName : apmplus_openapi
Region : cn-beijing
X-App-Ids : xxx
Content-Type : application/json

请求参数

Query

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

Body

参数类型是否必选示例值描述
app_idInteger12345App ID。
issue_idStringff56eea75c0411ed95d崩溃ID。
page_numInteger1该崩溃下第几页。
page_sizeInteger1该崩溃一次返回事件条数。
start_timeInteger1656288235开始时间。
end_timeInteger1656288235结束时间。
filtersObject of Condition-过滤条件。
regionStringcn请求区域,默认cn。
no_stack_infoBooleantrue是否返回堆栈详情。
search_textStringstack info堆栈过滤字段。

search_type

Integer

1

堆栈过滤方式。

  • 0:字符串
  • 1:正则

crash_time_type

String

server_time

时间类型。

  • server_time:服务端时间
  • client_time:客户端时间
langStringzh国际化语言类型。
crash_typeString""崩溃类型,pc_jank或者空。

Condition

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

op

String

in

查找类型。

  • in
  • >
  • <

type

String

and

条件类型。

  • and
  • or
valuesArray of String["1", "2"]维度值
dimensionStringdim1过滤维度。
sub_conditionsArray of Condition[ { "dimension": "parse_success", "op": "in", "values": [ "1" ], "groupKey": "dimension" } ]具体条件。

返回参数

参数类型示例值描述
dataObject of EventListResponseData-返回内容。
errmsgString""错误信息,成功为空。
errnoInteger200错误码,成功为200。

EventListResponseData

参数类型示例值描述
totalInteger32事件数。
resultArray of EventListResp-返回结果。

EventListResp

参数类型示例值描述
sceneStringupload事件场景。
event_idString""事件ID。
user_infoArray of [InfoForm](#inf[{,…}, {source: [{name: "国家", value: "中国"} ]}]事件信息。
debug_infoString""debug信息。
stack_infoString""堆栈信息。
last_update_timeString0堆栈信息缓存时间。

InfoForm

参数类型示例值描述
labelStringlabel信息分类label,例如,用户信息/位置信息...。
sourceArray of Detail[ [{name: "DeviceId", value: "71227007870549703691111"}]具体信息。

Detail

参数类型示例值描述
nameStringcpu信息名称。
valueStringintel信息值。

请求示例

POST /?Action=PCCrashEventList&Version=2022-10-28
{
    "app_id": 12345,
    "issue_id": "ff56eea75c0411ed95d",
    "page_num": 1,
    "page_size": 1,
    "start_time": 1656288235,
    "end_time": 1656288235,
    "region": "cn",
    "lang": "zh",
    "crash_time_type": "server_time",
    "search_type": 1,
    "no_stack_info": true,
    "filters": {
        "sub_conditions": [
            {
                "dimension": "parse_success",
                "op": "in",
                "values": [
                    "1"
                ],
                "groupKey": "dimension"
            }
        ],
        "type": "and",
        "op": "in",
        "values": [
            "1",
            "2"
        ],
        "dimension": "dim1"
    },
    "search_text": "stack info",
    "crash_type": "Rogelio"
}

返回示例

{
    "data": {
        "total": 32,
        "result": [
            {
                "event_id": "",
                "debug_info": "",
                "stack_info": "",
                "last_update_time": "peace",
                "user_info": "[{,…}, {source: [{name: \"国家\", value: \"中国\"} ]}]",
                "scene": "upload"
            }
        ]
    },
    "errno": 200,
    "errmsg": ""
}