You need to enable JavaScript to run this app.
导航
查询事件
最近更新时间:2024.06.30 18:36:03首次发布时间:2024.06.30 18:36:03

请求说明

Path:openapi/v1/metadata/<app_id: int>/list/events
Method: POST
Content-type: application/json

请求参数

Body:

参数

类型

是否必选

示例值

描述

filter

object

name

根据某些字段做过滤,可选值通常可用:

  • name 事件名
  • status 事件状态
  • id 事件id
  • creator_id 事件创建者id

with

list

virtual_params

获取事件时,携带获取关联的元数据信息,可选值为:

  • virtual_params 虚拟属性
  • property_dict 数据字典
  • values 事件属性值
  • alias 事件属性值对应的前端展示值
  • event_groups 事件分类
  • params 事件关联的属性

注意:with更多的关联信息将影响接口性能。

{
    "filter": {
        "name": ["app_launch", "predefine_pageview"],
        "status": [0, 1, 3, 4]
    },
    "with": ["params", "event_groups"]
}

返回参数

Response:

{
    "code": 200,
    "message": "success",
    "data": [
        {
            "id": 390022,
            "app_id": 1234,
            "name": "app_launch",
            "show_name": "应用启动",
            "backing_show_name": "应用启动",
            "show_name_en": null,
            "i18n_show_names": {
                "en_US": "应用启动",
                "zh_CN": "应用启动",
                "ja_JP": "应用启动"
            },
            "description": null,
            "preset": 1,
            "use_slot": 0,
            "status": 1,
            "used_users": 0,
            "used_times": 0,
            "used_times_updated_ts": 1672650039,
            "created_at": 1621755535,
            "updated_at": 1675332462,
            "verifier": "",
            "verify_time_ts": null,
            "status_disable_ts": 1673512602,
            "data_reported": 1,
            "last_day_amounts": 0,
            "platform": [
                "others",
                "mp"
            ],
            "origin": 0,
            "creator_id": "meta",
            "updator_id": "ranger-admin(852809798129652)",
            "principal": "",
            "data_date": null,
            "data_source_name": null,
            "data_source": null,
            "priority": null,
            "event_category": null,
            "owners": null,
            "jump_url": null,
            "param_status": null,
            "params": [
                {
                    "app_id": 1234,
                    "event_name": "app_launch",
                    "param_id": 369279,
                    "name": "extra",
                    "value_type": "string",
                    "show_name": "",
                    "backing_show_name": "extra",
                    "preset": 0,
                    "description": "",
                    "store_location": "string_params",
                    "store_value_type": "string",
                    "type": 1,
                    "status": 1,
                    "used_times": 0,
                    "used_times_updated_ts": 1649239503,
                    "cardinality": 0,
                    "value": null,
                    "aliases": null,
                    "i18n_aliases": null,
                    "has_property_dict": false,
                    "property_dict_version": null,
                    "property_dict_updated_ts": 1623318181,
                    "property_dict": null,
                    "slot_name": "extra",
                    "slot_index": null,
                    "created_at": 1621755549,
                    "updated_at": 1622960698,
                    "owners": null
                }
            ],
            "virtual_params": null,
            "items": null,
            "source_platform": null,
            "event_groups": [
                {
                    "id": 10373,
                    "group_type": 2,
                    "name": "121",
                    "pos": 1,
                    "creator_id": 204449,
                    "created_at": 1658371763,
                    "updated_at": 1658383757,
                    "events": null,
                    "public": false
                }
            ]
        }
    ]
}