TOP问题列表(新版)
POST
/uniform/openapi/getTopIssueExTOP问题列表
新加坡: https://crashsight.wetest.net
以上示例中的前缀域名为示例域名,实际使用时以实际环境为准。
下载python代码示例:https://crashsight-docs-1258344700.cos.ap-shanghai.myqcloud.com/uniform/crashsight_openapi_v1_getTopIssueEx.py
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Accept-Encoding
string
可选
示例值:
*
Body 参数application/json
appId
string
产品id
platformId
integer
平台id
version
string
必需
项目版本,-1代表全版本。和versionList字段二选一。如果要查询多版本,使用versionList字段。
date
string
必需
YYYYMMDD格式。仅在查询单日数据时使用,查询多日使用minDate和maxDate取代此字段。
type
string
必需
三种类型-crash,anr,error
limit
integer
必需
行数限制,获取多少行
topIssueDataType
string
必需
系统退出关键字分为两种情况,值为SystemExit和unSystemExit,代表匹配到系统退出关键字,未匹配到系统退出关键字
fsn
string
fsn值可以写死
mergeMultipleVersionsWithInaccurateResult
boolean
必需
多版本查询结果(设备数、次数)直接相加合并。如果要查多版本必须要设置为true
countryList
string
国家列表
versionList
array[string]
必需
和version字段二选一。指定一个或多个项目版本,支持*通配符。查询多版本必须设置mergeMultipleVersionsWithInaccurateResult为true
mergeMultipleDatesWithInaccurateResult
boolean
必需
是否查询多日数据(多日的设备数相加合并之后取top)
minDate
string
必需
查询多日数据的时候使用,指定日期范围起点(包含)。YYYYMMDD格式
maxDate
string
必需
查询多日数据的时候使用,指定日期范围终点(包含)。YYYYMMDD格式
示例
{
"appId": "7786d1a114",
"platformId": 1,
"version": "-1",
"date": "20230707",
"type": "crash",
"limit": 20,
"topIssueDataType": "unSystemExit",
"fsn": "c678c193-7a28-47c6-87aa-b79007152b97",
"mergeMultipleVersionsWithInaccurateResult": false,
"countryList": "",
"versionList": [
"1.0.0",
"2.0.0",
"3.0.*"
],
"mergeMultipleDatesWithInaccurateResult": false,
"minDate": "20230706",
"maxDate": "20230708"
}
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
integer
响应状态
data
object
查询结果
topIssueList
array [object {23}]
必需
crashDevices
integer
崩溃设备数
accessDevices
integer
联网设备数
prevDayCrashDevices
integer
必需
前一天崩溃设备数,多日数据查询时不支持。
prevDayAccessDevices
integer
必需
前一天联网设备数,多日数据查询时不支持。
message
string
错误详情
示例
{
"status": 200,
"data": {
"topIssueList": [
{
"appId": "b9642894f1",
"platformId": 1,
"date": "20230825",
"type": "crash",
"issueId": "63F9DDC53D9343F4B884092B49832A61",
"firstUploadTime": "2022-03-31 22:38:14 152",
"crashUser": 83,
"crashNum": 83,
"accumulateCrashNum": 123205,
"accumulateCrashUser": 123089,
"state": 1,
"processors": "13cb4423f7f014cb6ba25eb359fe617a;fe8e00dd852b4cc60731fbbc0158436e;18310c25f92c4636f78d291e3d66dd2e;324c0ec5fe73b0c6975638a85ebf0773;0cdf9f01a2d74948c95056e98401982f",
"exceptionName": "java.lang.RuntimeException",
"exceptionMessage": "SRdSbQ3h0XOjLF90pGHvwCu5vZBLwl",
"keyStack": "",
"lastUpdateTime": "2023-08-25 10:24:46 395",
"issueVersions": [
{
"version": "1.0.3",
"firstUploadTime": "2022-03-31 22:38:14 152",
"firstUploadTimestamp": 1648737494152,
"lastUploadTime": "2023-08-25 10:24:46 395",
"lastUploadTimestamp": 1648737494152,
"count": 123991,
"deviceCount": 123874,
"systemExitCount": 0,
"systemExitDeviceCount": 0
}
],
"preDayCrashUser": 109,
"preDayCrashNum": 109,
"prevHourCrashDevices": 0,
"is_system_exit": "false",
"tags": [
{
"tagId": 736,
"tagType": 0,
"tagCount": 0,
"tagName": "ad"
}
],
"bugs": [
{
"id": "",
"title": "",
"workspaceId": ""
}
]
}
],
"crashDevices": 0,
"accessDevices": 0,
"prevDayCrashDevices": 0,
"prevDayAccessDevices": 0
},
"message": "OK"
}
最后修改时间: 1 年前