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

MiniProGetFieldKeys

最近更新时间2024.05.08 17:48:43

首次发布时间2024.04.03 17:37:04

调用MiniProGetFieldKeys获取筛选条件。

请求说明

  • 请求方式:POST
  • 请求地址:?Action=MiniProGetFieldKeys&Version=2024-03-12

请求参数

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

Query

参数类型是否必选示例值描述
ActionStringMiniProGetFieldKeys接口名称。当前 API 的名称为 MiniProGetFieldKeys
VersionString2024-03-12接口版本。当前 API 的版本为 2024-03-12

Body

参数类型是否必选示例值描述
commonObject of Common-通用参数。

ev_type

String

performance

模块类型。

  • performance:性能监控
  • js_error:js监控
  • http:请求监控
  • url_list:页面列表
  • custom:自定义监控
  • session:数据探索/session
  • view:数据探索/view
  • js_error:数据探索/js error
  • custom:数据探索/custom event
  • log:数据探索/custom log
filter_conditionsObject of Filter_conditions-时间区间。

Common

参数类型是否必选示例值描述
aidLong12345应用ID。

Filter_conditions

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

type

String

and

筛选条件类型。

  • and:children中的条件为“与”关系。
  • rule(默认):当前条件为原子条件。
fieldStringpid条件字段。
opStringin条件符号,可选值有eq,neq,lt,lte,gt,gte,in,not_in,regex,not_regex。
valuesArray of String["数据探索"]条件值,可选值集合由GetFieldValues方法获取。
childrenArray of Filter_conditions-子参数。当type值为and时必填。children下还可以继续嵌套,与op、field、values不可以共存。

返回参数

参数类型示例值描述
dataArray of Data-返回内容。
error_msgString-错误信息。
error_noInteger0错误吗。0为成功。

Data

参数类型示例值描述
nameStringpid筛选维度。
descriptionStringpid筛选维度描述。
renderFormStringRegexAndNotRegexEqAndNeqSymbol筛选维度支持的筛选方式。

请求示例

POST ?Action=MiniProGetFieldKeys&Version=2024-03-12
{
    "ev_type": "performance",
    "common": {
        "aid": 12345
    },
    "filter_conditions": {
        "type": "and",
        "children": [
            {
                "op": "in",
                "field": "pid",
                "values": [
                    "数据探索"
                ]
            }
        ]
    }
}

返回示例

{
    "err_detail":"",
    "data":[
        {
            "name":"pid",
            "description":"pid",
            "renderForm":"RegexAndNotRegexEqAndNeqSymbol",
            "isDefault":false
        }
    ],
    "error_msg":"",
    "error_no":0
}