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

GetAppExceptionalBatteryIssueEventList

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

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

获取App电量异常事件。

请求说明

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

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

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

GetAppExceptionalBatteryIssueEventList

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

Version

String

2024-04-09

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

Body

参数

类型

是否必选

示例值

描述

filters

Object of Condition

-

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

issue_id

String

issue_12345

问题ID。

is_new

Integer

1

新增issue。

  • 1:新增issue
  • 0:非新增issue

start_time

Integer

1619827200

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

end_time

Integer

1619913600

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

page_size

Integer

20

每页显示的事件数量。

page_no

Integer

1

请求的页码编号。

token

String

search_token

搜索关键词。

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

-

子条件。

返回参数

参数

类型

示例值

描述

data

Object of BatteryTraceEventListData

-

返回内容。

error_msg

String

success

错误信息。

error_no

Integer

0

错误码。

BatteryTraceEventListData

参数

类型

示例值

描述

total

Integer

10

列表总数。

result

Array of JSON Map

-

列表详情。

Result

参数

类型

示例值

描述

key

String

eventname

电量异常事件的key。

value

String

123

电量异常事件的key对应value。

请求示例

POST ?Action=GetAppExceptionalBatteryIssueEventList&Version=2024-04-09
{
    "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"
                ]
            }
        ]
    },
    "issue_id": "issue_12345",
    "is_new": 1,
    "start_time": 1619827200,
    "end_time": 1619913600,
    "page_size": 20,
    "page_no": 1,
    "token": "search_token"
}

返回示例

{
    "data": {
        "total": 10,
        "result": []
    },
    "error_msg": "",
    "error_no": 0
}