最近更新时间:2024.04.25 17:57:50
首次发布时间:2024.04.25 17:57:50
获取App耗电异常列表。
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 接口名称。当前 API 的名称为 |
Version | String | 是 |
| 接口版本。当前 API 的版本为 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
start_time | Integer | 否 |
| 查询起始时间(Unix时间戳)。 |
end_time | Integer | 否 |
| 查询结束时间(Unix时间戳)。 |
filters | Object of Condition | 否 |
| 筛选条件,可以指定多个键值对来筛选数据。 |
is_new | Integer | 否 |
| issue新增状态。
|
page_no | Integer | 否 |
| 页码。 |
page_size | Integer | 否 |
| 每页大小。 |
status | Array of String | 否 |
| 处理状态。
|
managers | Array of Long | 否 |
| 按责任人筛选,传用户ID列表。 |
tags | Array of Long | 否 |
| 传自定义标签ID列表。 |
token | String | 否 |
| 搜索关键字。 |
order_by | String | 否 |
| 排序字段和方式。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
op | String | 否 |
| 操作符。
|
type | String | 否 |
| 筛选条件类型。
|
value | String | 否 |
| 筛选值。 |
values | Array of String | 否 |
| 筛选值,支持多个。 |
map_key | String | 否 |
| map类型key,当type为map时必填。 |
dimension | String | 否 |
| 条件的名称。 |
sub_conditions | Array of Condition | 否 |
| 子条件。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | Object of BatteryTraceIssueData |
| 返回内容。 |
error_msg | String |
| 错误信息。 |
error_no | Integer |
| 错误码。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
total | Integer |
| 列表总数。 |
result | Array of IssuePageItem |
| 列表详情。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
issue | Object of IssueInfo |
| issue状态相关信息,目前包括责任人和状态。 |
stack | Object of ParsedStack |
| 堆栈相关信息。 |
issue_id | String |
| issue ID。 |
trace_cnt | Integer |
| 发生次数。 |
trace_type | Integer |
| 跟踪类型。 |
trace_user | Integer |
| 影响用户数。 |
end_app_version | String |
| 结束版本。 |
first_event_time | Integer |
| 首次事件时间。 |
last_report_time | Integer |
| 最后一次报告的时间。 |
start_app_version | String |
| 开始版本。 |
trace_cnt_compare | Double |
| 发生次数变化率。 |
trace_user_compare | Double |
| 影响用户数变化率。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | Long |
| issue在mysql里的ID,不同于issue_id。 |
tag | Array of Tags |
| 标签。 |
status | String |
| issue状态。
|
fixed_version | String |
| 修复版本号。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
brief | String |
| 堆栈的简要描述。 |
title | String |
| 堆栈标题。 |
detail | String |
| 堆栈详情。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | Long |
| tag ID。 |
key | String |
| tag key。 |
values | Array of ValueId |
| tag value。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
id | Long |
| tag valueID。 |
value | String |
| tag value。 |
POST ?Action=GetAppExceptionalBatteryIssueList&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" ] } ] }, "is_new": 0, "page_no": 1, "page_size": 20, "status": [ "pending" ], "managers": [ 123456, 789012 ], "tags": [ 111, 222 ], "token": "keyword", "order_by": "trace_cnt_desc" }
{ "data": { "total": 10, "result": [ { "issue": { "id": 1112121, "tag": [ { "id": 301, "key": "component", "values": [ { "id": 201, "value": "production" } ] } ], "status": "processing", "fixed_version": "v1.1.2" }, "stack": { "brief": "Crash due to null object reference", "title": "NullPointerException", "detail": "at com.example.myapp.MainActivity.onCreate" }, "issue_id": "issue_12345", "trace_cnt": 100, "trace_type": 1, "trace_user": 50, "end_app_version": "1.0.5", "first_event_time": 1619820000, "last_report_time": 1619900000, "start_app_version": "1.0.0", "trace_cnt_compare": 0.1, "trace_user_compare": 0.2 } ] }, "error_msg": "", "error_no": 0 }