You need to enable JavaScript to run this app.
导航
高级搜索
最近更新时间:2025.03.13 20:15:58首次发布时间:2025.03.13 20:15:58
我的收藏
有用
有用
无用
无用

请求说明

Path:openapi/v1/projects/:project_id/session_replay/analysis
Method:POST
Content-type: application/json

请求参数

Body: 参考公共参数说明

参数

类型

是否必选

描述

示例值

user_id_type

string

必填

用户id类型

user_unique_id

user_unique_id

string

选填

需要查询的用户id

sh******.sh******

timezone

string

必填

查询的时区

Asia/Shanghai

profile_filters

array

必填

用户属性筛选,详情请参见下文profile_filters参数介绍表。

参见下文profile_filters参数介绍表。

events

object

必填

事件筛选,详情请参见下文events参数介绍表。

参见下文events参数介绍表。

其中:

  • profile_filters参数表

    参数

    类型

    是否必选

    描述

    示例值

    show_name

    string

    选填

    非必填

    show_label

    string

    选填

    非必填

    expression

    object

    必填

    logic

    string

    必填

    条件的逻辑关系,and 或者 or

    and

    expressions

    array,
    array item为object

    必填

    logic

    string

    必填

    条件的逻辑关系,and 或者 or

    conditions

    array,
    array item为object

    必填

    property_type

    string

    必填

    属性类型

    common_param

    property_name

    string

    必填

    属性名

    tea_profile_user_unique_id

    property_compose_type

    string

    必填

    属性复合类型

    origin

    property_operation

    string

    必填

    属性筛选

    =

    property_values

    array,
    array item为string

    必填

    属性值

    shihaoyang.shylocks

  • events参数表

    参数

    类型

    是否必选

    描述

    示例值

    logic

    string

    必填

    条件的逻辑关系,and 或者 or

    and

    queries

    array,
    array item为string

    必填

返回参数

参数

类型

描述

示例值

code

int

message

string

data

object

result

array,
array item为object

sr_recording_id

string

回放id

ac5d682ca0ed45dcac5bace08a421d28202502070****

show_user_id

string

回放用户id

sh*****.sh*****

user_id_type

string

用户id属性

user_unique_id

app_id

int

中台app_id

1****

device_model

string

设备型号

macintosh

os_name

string

系统信号

mac

start_time

int

开始录制的时间

1738898243

tags

string

json序列化后的tag

["finder","project-1****"]

duration

double

时长

88520.70000076294

mode

string

录制模式

streaming

state

string

状态

Closed

data_level

int

数据登记

3

filter_id

string

查询快照id

errors

array,
array item为string

报错信息,分为实时和离线

请求示例
{
    "events": {
        "logic": "and",
        "queries": [
            "ry2kyQCVJm"
        ]
    },
    "timezone": "Asia/Shanghai",
    "user_id_type": "user_unique_id",
    "user_unique_id": "shihaoyang.shylocks",
    "profile_filters": [
        {
            "show_name": "8ykMvb4zeO",
            "show_label": "P1cirK80RO",
            "expression": {
                "logic": "and",
                "expressions": [
                    {
                        "logic": "A60XBEuUee",
                        "conditions": [
                            {
                                "property_type": "common_param",
                                "property_name": "tea_profile_user_unique_id",
                                "property_compose_type": "origin",
                                "property_operation": "=",
                                "property_values": [
                                    "shihaoyang.shylocks"
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

返回示例
{
    "code": 2648201530210864756,
    "message": "BuqqIH4V36",
    "data": {
        "result": [
            {
                "sr_recording_id": "ac5d682ca0ed45dcac5bace08a421d2820250207******",
                "show_user_id": "sh****.sh****",
                "user_id_type": "user_unique_id",
                "app_id": 1****,
                "device_model": "macintosh",
                "os_name": "mac",
                "start_time": 1738898243,
                "tags": "[\\\"finder\\\",\\\"project-1****\\\"]",
                "duration": 88520.70000076294,
                "mode": "streaming",
                "state": "Closed",
                "data_level": 3
            }
        ],
        "filter_id": "LNMWhegiMb",
        "errors": [
            [
                "oaKjJuqX2v"
            ]
        ]
    }
}