You need to enable JavaScript to run this app.
导航
GetAppCustomTagKeys
最近更新时间:2024.07.16 17:45:39首次发布时间:2024.07.16 17:45:39

获取自定义维度keys。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=GetAppCustomTagKeys&Version=2022-10-12
ServiceName: apmplus_openapi
Region: cn-beijing
X-App-Ids: xxx
Content-Type: application/json

请求参数

Query

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

Body

参数类型是否必选示例值描述
aidInteger123456应用ID。
start_timeInteger1665417600开始时间。
end_timeInteger1665504000终止时间。

biz_type

String

crash

指标类型。

  • crash:崩溃
  • crash_defend:崩溃防护
  • lag:卡顿
  • custom_exception:自定义异常
  • battery:电量指标
  • battery_summary:耗电因素
  • battery_trace:异常趋势
limitInteger100返回的数据条数,默认100。
filtersObject of Condition-筛选条件,可以指定多个键值对来筛选数据。

Condition

参数类型是否必选示例值描述

op

String

in

操作符。

  • gt:大于
  • gte:大于等于
  • lt:小于
  • lte:小于等于
  • eq:等于
  • neq:不等于
  • in:包含
  • not_in:不包含
  • lk:模糊匹配特定模式的数据
  • nlk:排除模糊匹配的数据

type

String

expression

筛选条件类型。

  • expression:当前condition是一个表达式。
  • and:当前condition是一个复合表达式,多个sub_condition的逻辑关系是and。
  • or:当前condition是一个复合表达式,多个sub_condition的逻辑关系是or。
  • map:当前condition是map类型。
valueStringAndroid筛选值。
valuesArray of String["Android"]筛选值,支持多个。
map_keyStringkey_1map类型key,当type为map时必填。
dimensionStringaid条件的名称。
sub_conditionsArray of Condition-子条件。

返回参数

参数类型示例值描述
dataArray of TagKey[{"label":"third_id", "value":"3ffffs"}]返回的key数据,最多100条。
error_msgStringsuccess错误信息。
error_noInteger0错误码。成功为0。

TagKey

参数类型示例值描述
labelStringthird_id字段值。
valueString3ffffs字段值显示名称。

请求示例

POST https://open.volcengineapi.com?Action=GetAppCustomTagKeys&Version=2022-10-12
{
  "aid": 12345,
  "biz_type": "crash",
  "limit": 100,
  "start_time": 1721012400,
  "end_time": 1721098907,
  "filters": {
    "type": "and",
    "sub_conditions": [
      {
        "dimension": "os",
        "op": "in",
        "type": "expression",
        "values": [
          "Android"
        ]
      }
    ]
  }
}

返回示例

{
  "err_detail": "",
  "data": [
    {
      "label": "鸿蒙系统",
      "value": "is_harmony_os"
    },
    {
      "label": "ANR归因",
      "value": "anr_key"
    },
    {
      "label": "FD数量大于1000",
      "value": "fd_leak"
    },
    {
      "label": "成功抓取到logcat",
      "value": "has_logcat"
    },
    {
      "label": "系统存储空间剩余",
      "value": "inner_free"
    },
    {
      "label": "内部存储空间剩余",
      "value": "inner_free_real"
    },
    {
      "label": "sdcard存储空间剩余",
      "value": "sdcard_free"
    },
    {
      "label": "是否64位设备",
      "value": "is_64_devices"
    },
    {
      "label": "是否64位apk",
      "value": "is_64_runtime"
    },
    {
      "label": "是否root设备",
      "value": "is_root"
    },
    {
      "label": "是否x86设备",
      "value": "is_x86_devices"
    },
    {
      "label": "Java堆内存占用过高(大于95%)",
      "value": "java_heap_leak"
    },
    {
      "label": "最近一次onResume的Activity",
      "value": "last_resume_activity"
    },
    {
      "label": "stm占用最高的线程",
      "value": "max_stm_thread"
    },
    {
      "label": "utm占用最高的线程",
      "value": "max_utm_thread"
    },
    {
      "label": "虚拟内存占用过高(32位2.8G / 64位3.8G)",
      "value": "memory_leak"
    },
    {
      "label": "Native堆内存占用过高(大于200M)",
      "value": "native_heap_leak"
    },
    {
      "label": "成功抓取到FD列表",
      "value": "has_fds_file"
    },
    {
      "label": "成功抓取到线程状态列表",
      "value": "has_threads_file"
    },
    {
      "label": "成功抓取到进程状态",
      "value": "has_meminfo_file"
    },
    {
      "label": "ANR reason",
      "value": "anr_reason"
    },
    {
      "label": "ANR tag",
      "value": "anr_tag"
    },
    {
      "label": "anr_cmsg_wall",
      "value": "anr_cmsg_wall"
    },
    {
      "label": "anr_replace_mainstack",
      "value": "anr_replace_mainstack"
    },
    {
      "label": "anr_step",
      "value": "anr_step"
    },
    {
      "label": "app_tag",
      "value": "app_tag"
    },
    {
      "label": "first_update_launch",
      "value": "first_update_launch"
    },
    {
      "label": "has_envinfo_file",
      "value": "has_envinfo_file"
    },
    {
      "label": "has_malloc_file",
      "value": "has_malloc_file"
    },
    {
      "label": "has_native_stack",
      "value": "has_native_stack"
    },
    {
      "label": "has_pthread_key_file",
      "value": "has_pthread_key_file"
    },
    {
      "label": "has_pthread_key_map_file",
      "value": "has_pthread_key_map_file"
    },
    {
      "label": "has_pthreads_file",
      "value": "has_pthreads_file"
    },
    {
      "label": "has_signal",
      "value": "has_signal"
    },
    {
      "label": "has_view_tree",
      "value": "has_view_tree"
    },
    {
      "label": "input_timeout_type",
      "value": "input_timeout_type"
    },
    {
      "label": "is_current_process",
      "value": "is_current_process"
    },
    {
      "label": "is_hm_os",
      "value": "is_hm_os"
    },
    {
      "label": "kernel_version",
      "value": "kernel_version"
    },
    {
      "label": "key",
      "value": "key"
    },
    {
      "label": "load_0",
      "value": "load_0"
    },
    {
      "label": "load_1",
      "value": "load_1"
    },
    {
      "label": "load_2",
      "value": "load_2"
    },
    {
      "label": "logcat_type",
      "value": "logcat_type"
    },
    {
      "label": "success_end_anrinfo",
      "value": "success_end_anrinfo"
    },
    {
      "label": "version_get_time",
      "value": "version_get_time"
    }
  ],
  "error_msg": "",
  "error_no": 0
}

错误码

本接口无特有的错误码。更多信息请参见错误码