产品事件
更新时间: 2023-04-19

# 修改事件

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/events/:name

Method: PUT

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey
name

Body

名称类型是否必须默认值备注其他信息
dataSchemaobject非必须
├─ @typestring非必须
├─ fieldsobject非必须
├─ field1object非必须
├─ @typestring非必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
displayNamestring非必须
descriptionstring非必须
typestring非必须InfoEvent, AlertEvent, ErrorEvent, LogEvent

# 返回数据

名称类型是否必须默认值备注其他信息
namestring非必须
typestring非必须
dataSchemaobject非必须
├─ @typestring非必须
├─ fieldsobject非必须
├─ field1object非必须
├─ @typestring非必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
displayNamestring非必须
descriptionstring非必须
createTimestring非必须
updateTimestring非必须

# 创建事件

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/events

Method: POST

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey

Body

名称类型是否必须默认值备注其他信息
namestring必须^[a-zA-Z](?:[a-zA-Z0-9_]{0,48}[a-zA-Z0-9])?$
typestring必须InfoEvent, AlertEvent, ErrorEvent, LogEvent
dataSchemaobject非必须
├─ @typestring必须只允许object
├─ fieldsobject必须可以有多个field,field名由用户指定
├─ field1object非必须
├─ @typestring必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
displayNamestring必须"^[\\s\\S]{2,50}$"
descriptionstring非必须"^[\\s\\S]{0,200}$"

# 返回数据

名称类型是否必须默认值备注其他信息
namestring非必须
typestring非必须
dataSchemaobject非必须
├─ @typestring非必须
├─ fieldsobject非必须
├─ field1object非必须
├─ @typestring非必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
displayNamestring非必须
descriptionstring非必须
createTimestring非必须
updateTimestring非必须

# 删除事件

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/events/:name

Method: DELETE

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey
name

# 返回数据

# 获取事件

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/events/:name

Method: GET

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey
name

# 返回数据

名称类型是否必须默认值备注其他信息
namestring非必须
typestring非必须
dataSchemaobject非必须
├─ @typestring非必须
├─ fieldsobject非必须
├─ field1object非必须
├─ @typestring非必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
displayNamestring非必须
descriptionstring非必须
createTimestring非必须
updateTimestring非必须

# 获取事件列表

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/events

Method: GET

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey

Query

参数名称 是否必须 示例 备注
pageNo
pageSize

# 返回数据

名称类型是否必须默认值备注其他信息
totalCountnumber非必须
resultobject []非必须
├─ namestring非必须
├─ typestring非必须
├─ dataSchemaobject非必须
├─ @typestring非必须
├─ fieldsobject非必须
├─ field1object非必须
├─ @typestring非必须
├─ formatstring非必须
├─ minnumber非必须
├─ maxnumber非必须
├─ stepnumber非必须
├─ patternstring非必须
├─ minLengthnumber非必须
├─ maxLengthnumber非必须
├─ requiredstring []非必须
├─非必须
├─ displayNamestring非必须
├─ descriptionstring非必须
├─ createTimestring非必须
├─ updateTimestring非必须
pageNonumber非必须
pageSizenumber非必须