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

PCIssueListDownload

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

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

调用PCIssueListDownload接口下载崩溃列表。

请求说明

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

请求参数

Query

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

Body

参数类型是否必选示例值描述
app_idInteger12345App ID。
page_numInteger1崩溃列表页数。
page_sizeInteger1一次返回崩溃数。
start_timeInteger1656288235开始时间。
end_timeInteger1656288235结束时间。

order

String

desc

排序方式。

  • asc:正序
  • desc:倒序

order_by_metric

String

user

用哪个字段排序。

  • count
  • user
search_textStringstack info堆栈过滤字段。

search_type

Integer

1

堆栈过滤方式。

  • 0:字符串
  • 1:正则
regionStringcn请求区域, 默认cn。
issue_idsArray of String[]搜索的崩溃ID,为空全搜索。
filtersObject of Condition-过滤条件。
contextJSON Map{os_version_parsed: ["10.0.17763 2928", "10.0.10586 0"]}自定义context,key-value样式,是您自定义的筛选项。
issue_statesArray of String ["unassigned", "doing", "done", "be_processed_again"]过滤的issue状态。
issue_managersArray of String["zhangshan"]过滤崩溃管理人列表。

crash_time_type

String

server_time

时间类型。

  • server_time:服务端时间
  • client_time:客户端时间
is_first_issueBooleanfalse是否为新发现的issue。
issue_levelsArray of Integer[]过滤issue等级。

tag_op

String

not_in

tag过滤方式。

  • not_in:不包含
  • in:包含
issue_tagsArray of TagAndGroupId-tag列表。
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" } ]具体条件。

Context

参数类型是否必选示例值描述
keyStringos_version_parsed自定义筛选项的关键字。
valueArray of String["10.0.17763 2928", "10.0.10586 0"]自定义筛选项的取值。

TagAndGroupId

参数类型是否必选示例值描述
tag_idInteger1标签ID。
group_idInteger1标签组ID。

返回参数

参数类型示例值描述
dataStringPK....excel 文件内容。

请求示例

POST /?Action=PCIssueListDownload&Version=2022-10-28
{
    "app_id": 12345,
    "page_num": 1,
    "page_size": 1,
    "start_time": 1656288235,
    "end_time": 1656288235,
    "crash_time_type": "server_time",
    "search_type": 1,
    "order": "desc",
    "filters": {
        "op": "in",
        "values": [
            "1",
            "2"
        ],
        "context": {
            "os_version_parsed": [
                "10.0.17763 2928",
                "10.0.10586 0"
            ]
        },
        "type": "and",
        "sub_conditions": [
            {
                "dimension": "parse_success",
                "op": "in",
                "values": [
                    "1"
                ],
                "groupKey": "dimension"
            }
        ],
        "dimension": "dim1"
    },
    "issue_levels": [],
    "issue_states": [
        "unassigned",
        "doing",
        "done",
        "be_processed_again"
    ],
    "region": "cn",
    "issue_ids": [],
    "issue_managers": [
        "zhangshan"
    ],
    "search_text": "stack info",
    "tag_op": "not_in",
    "crash_type": "",
    "order_by_metric": "user",
    "issue_tags": [
        {
            "tag_id": 1,
            "group_id": 1
        }
    ],
    "is_first_issue": true
}

返回示例

{
    "data": "PK...."
}