图谱 API 版

Application Codeless Event Mappings

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 codeless_event_mappings 连线发出 POST 请求:
发布到这个连线时,将会创建 an Application

参数

参数描述
mappings
array<JSON object>

The event to UI component mappings of the app

必填
method
enum {INFERENCE, MANUAL, CONFIRMED_INFERENCE, BUTTON_INDEXING, UNKNOWN}

method

必填
event_name
string

event_name

必填
event_type
enum {CLICK, SELECTED, TEXT_CHANGED}

event_type

必填
app_version
string

app_version

必填
parameters
array<JSON object>

parameters

name
string

name

必填
path
array<JSON object>

path

必填
class_name
string

class_name

必填
index
int64

index

必填
id
int64

id

text
string

text

tag
string

tag

description
string

description

hint
string

hint

match_bitmask
int64

match_bitmask

path_type
enum {ABSOLUTE, RELATIVE}
默认值:"ABSOLUTE"

path_type

component_id
string

component_id

必填
path
array<JSON object>

path

必填
class_name
string

class_name

必填
index
int64

index

必填
id
int64

id

text
string

text

tag
string

tag

description
string

description

hint
string

hint

match_bitmask
int64

match_bitmask

component_id
string

component_id

必填
path_type
enum {ABSOLUTE, RELATIVE}
默认值:"ABSOLUTE"

path_type

screenshot_handle
string

screenshot_handle

dimensions
array<JSON object>

dimensions

top
int64

top

必填
left
int64

left

必填
width
int64

width

必填
height
int64

height

必填
activity_name
string

activity_name

mutation_method
enum {REPLACE, ADD, DELETE}

Detailed mutation type like replace, add

必填
platform
enum {ANDROID, IOS}

The platform of the app being indexed

必填
post_method
enum {EYMT, CODELESS}
默认值:"CODELESS"

Whether the api is called by codeless or EYMT

返回类型

Struct {
num_updated: int32,
num_invalid: int32,
}

错误代码

错误描述
100Invalid parameter

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。