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

GetAppExceptionalCPUIssueList

最近更新时间2024.04.25 17:57:49

首次发布时间2024.04.25 17:57:49

调用GetAppExceptionalCPUIssueList获取CPU问题列表。

请求说明

  • 请求方式:POST
  • 请求地址:?Action=GetAppExceptionalCPUIssueList&Version=2024-04-09

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

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

GetAppExceptionalCPUIssueList

接口名称。当前 API 的名称为 GetAppExceptionalCPUIssueList

Version

String

2024-04-09

接口版本。当前 API 的版本为 2024-04-09

Body

参数

类型

是否必选

示例值

描述

start_time

Integer

1619827200

查询开始时间(Unix时间戳)。

end_time

Integer

1619913600

查询结束时间(Unix时间戳)。

filters

Object of Condition

-

筛选条件,可以指定多个键值对来筛选数据。

page_no

Integer

1

请求的页码。

page_size

Integer

10

每页请求的问题(issue)数量。

order_by

String

crash_count_compare_ascend

排序字段和方向。

  • crash_count_compare_ascend:崩溃数升序排列
  • crash_count_compare_descend:崩溃数降序排列
  • crash_user_compare_ascend:崩溃用户数升序排列
  • crash_user_compare_descend:崩溃用户数降序排列
  • count_per_user_compare_ascend:崩溃用户率升序排列
  • count_per_user_compare_descend:崩溃用户率降序排列
  • average_usage_compare_ascend:平均使用率升序排列
  • average_usage_compare_descend:平均使用率降序排列
  • average_speed_compare_ascend:平均速度升序排列
  • average_speed_compare_descend:平均速度降序排列

is_new

Integer

1

是否新增issue。

  • 1:只看新增issue
  • 0:全部issue

token

String

keyword

搜索用的关键字或令牌。

status

Array of String

["reopen", "solved"]

筛选特定状态的issue。

  • pending:未修复
  • processing:修复中
  • ignored:已忽略
  • solved:已修复
  • reopen:重复出现

tags

Array of Long

[123, 456]

标签过滤,以列表形式提供每个标签的ID。

managers

Array of Long

[123456789]

筛选负责人为指定ID的issue。

Condition

参数

类型

是否必选

示例值

描述

op

String

in

操作符。

  • gt:大于
  • gte:大于等于
  • lt:小于
  • lte:小于等于
  • eq:等于
  • neq:不等于
  • in:包含
  • not_in:不包含
  • lk:like
  • nlk:not like
  • regex:正则匹配
  • not_null:非正则匹配

type

String

expression

筛选条件类型。

  • expression:当前condition是一个表达式
  • and:当前condition是一个复合表达式,多个sub_condition的逻辑关系是and
  • or:当前condition是一个复合表达式,多个sub_condition的逻辑关系是or
  • map:当前condition是map类型

value

String

123456

筛选值。

values

Array of String

[123456]

筛选值,支持多个。

map_key

String

key_1

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

dimension

String

aid

条件的名称。

sub_conditions

Array of Condition

-

子条件。

返回参数

参数

类型

示例值

描述

error_no

Integer

0

错误码。

error_msg

String

-

错误信息。

data

Object of IssueListData

-

返回数据。

IssueListData

参数

类型

示例值

描述

total

Integer

3

列表总数。

result

Array of IssueItem

-

列表详情。

IssueItem

参数

类型

示例值

描述

os

String

android

操作系统。

  • Android:安卓
  • iOS:iOS

issue

Object of IssueInfo

-

标签和issue状态、处理人issue状态相关信息,目前包括责任人和状态。

title

String

内存溢出错误

问题标题。

issue_id

String

issue_12345

问题标识符。

crash_user

Long

50

崩溃影响的用户数。

crash_count

Long

100

崩溃次数。

crash_ratio

Double

0.05

崩溃率。

event_detail

String

该错误在主页模块发生...

问题详细描述。

average_speed

Double

1.5

Android平均进程使用速率。

average_usage

Double

30.0

iOS平均进程使用率。

count_per_user

Long

5

用户平均每次启动时的上报次数。

end_app_version

String

1.0.1

结束的应用程序版本号。

earliest_event_id

String

event_123

最早的事件ID。

latest_crash_time

Long

1619827200

最近一次崩溃的时间戳。

start_app_version

String

1.0.0

开始的应用程序版本号。

crash_user_compare

Double

0.2

相较于上一周期的崩溃影响用户数变化率。

latest_report_time

Long

1619830800

最近一次报告的时间戳。

crash_count_compare

Double

0.1

相较于上一周期的崩溃次数变化率。

average_speed_compare

Double

0.1

Android平均进程使用速率变化率。

average_usage_compare

Double

0.05

iOS平均进程使用率变化率。

count_per_user_compare

Double

0.1

用户平均每次启动上报次数的变化率。

IssueInfo

参数

类型

示例值

描述

id

Long

1112121

issue在mysql里的ID,不同于issue_id。

tag

Array of Tags

-

标签。

status

String

processing

issue状态。

  • pending:未修复
  • processing:修复中
  • ignored:已忽略
  • solved:已修复
  • reopen:重复出现

fixed_version

String

v1.1.2

修复版本号。

Tags

参数

类型

示例值

描述

id

Long

301

tag ID。

key

String

component

tag key。

values

Array of ValueId

-

tag value。

ValueId

参数

类型

示例值

描述

id

Long

201

tag valueID。

value

String

production

tag value。

请求示例

POST ?Action=GetAppExceptionalCPUIssueList&Version=2024-04-09
{
    "start_time": 1619827200,
    "end_time": 1619913600,
    "filters": {
        "type": "and",
        "sub_conditions": [
            {
                "dimension": "apm_version",
                "type": "expression",
                "op": "in",
                "values": [
                    "1.4.5"
                ]
            },
            {
                "dimension": "device_model",
                "type": "expression",
                "op": "in",
                "values": [
                    "MI 5X"
                ]
            }
        ]
    },
    "page_no": 1,
    "page_size": 10,
    "order_by": "crash_count_compare_ascend",
    "is_new": 1,
    "token": "keyword",
    "status": [
        "reopen",
        "solved"
    ],
    "tags": [
        123,
        456
    ],
    "managers": [
        123456789
    ]
}

返回示例

{
    "error_no": 0,
    "error_msg": "",
    "data": {
        "total": 3,
        "result": [
            {
                "os": "android",
                "issue": {
                    "id": 1112121,
                    "tag": [
                        {
                            "id": 301,
                            "key": "component",
                            "values": [
                                {
                                    "id": 201,
                                    "value": "production"
                                }
                            ]
                        }
                    ],
                    "status": "processing",
                    "fixed_version": "v1.1.2"
                },
                "title": "内存溢出错误",
                "issue_id": "issue_12345",
                "crash_user": 50,
                "crash_count": 100,
                "crash_ratio": 0.05,
                "event_detail": "该错误在主页模块发生...",
                "average_speed": 1.5,
                "average_usage": 30,
                "count_per_user": 5,
                "end_app_version": "1.0.1",
                "earliest_event_id": "event_123",
                "latest_crash_time": 1619827200,
                "start_app_version": "1.0.0",
                "crash_user_compare": 0.2,
                "latest_report_time": 1619830800,
                "crash_count_compare": 0.1,
                "average_speed_compare": 0.1,
                "average_usage_compare": 0.05,
                "count_per_user_compare": 0.1
            }
        ]
    }
}