新增场景联动
接口地址:/api/yt/scene_linkage
请求方式:POST
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
请求示例:
{
"createTime": "",
"creator": "",
"creatorName": "",
"defaultConfig": "",
"description": "",
"enabled": false,
"icon": "",
"id": "",
"name": ""
}
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
sceneLinkageDTOReq | SceneLinkageDTOReq | body | true | SceneLinkageDTOReq |
createTime | 创建时间 | false | string(date-time) | |
creator | 创建用户 | false | string | |
creatorName | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 描述 | false | string | |
doActions | 执行动作 | false | array | |
alarmProfileId | 输出目标为告警才进行配置 | false | string | |
callType | 调用类型:sync同步/async异步,可用值:ASYNC,SYNC | false | string | |
commandType | 命令类型:0自定义 1服务 | false | integer | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceId | 所属设备id | false | array | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
doContext | 场景联动内容 | false | JsonNode | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityType | 取值范围,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
outTarget | 输出目标:设备,告警,其他,可用值:DEVICE_OUT,MSG_NOTIFY,SCENE_ACT | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
thingsModelId | 服务模型ID | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
doConditions | 执行条件 | false | array | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityId | entityId列表 | false | array | |
entityType | 触发器关联实体,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggerCondition | 触发条件 | false | AlarmRuleReq | |
alarmDetails | String value representing the additional details for an alarm rule | false | string | |
condition | JSON object representing the alarm rule condition | false | AlarmConditionReq | |
condition | JSON array of alarm condition filters | false | array | |
key | JSON object for specifying alarm condition by specific key | false | AlarmConditionFilterKeyReq | |
key | String value representing the key | false | string | |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | false | string | |
predicate | JSON object representing filter condition | false | KeyFilterPredicate | |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | false | object | |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | false | string | |
spec | JSON object representing alarm condition type | false | AlarmConditionSpec | |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | false | DashboardIdReq | |
id | ID of the entity, time-based UUID v1 | true | string | |
schedule | JSON object representing time interval during which the rule is active | false | AlarmScheduleReq | |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 场景联动名称 | true | string | |
organizationId | 所属组织id | true | string | |
roleIds | 租户角色列表 | false | array | |
status | 状态:0表示已停用,1表示启用 | false | integer(int32) | |
tenantExpireTime | 租户到期时间 | false | string(date-time) | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggers | 触发器 | false | array | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityId | 实体ID | false | array | |
entityType | 触发器关联实体,例如:设备ID、场景联动ID、定时任务CRON表达式,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggerCondition | 触发条件 | false | AlarmRuleReq | |
alarmDetails | String value representing the additional details for an alarm rule | false | string | |
condition | JSON object representing the alarm rule condition | false | AlarmConditionReq | |
condition | JSON array of alarm condition filters | false | array | |
key | JSON object for specifying alarm condition by specific key | false | AlarmConditionFilterKeyReq | |
key | String value representing the key | false | string | |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | false | string | |
predicate | JSON object representing filter condition | false | KeyFilterPredicate | |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | false | object | |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | false | string | |
spec | JSON object representing alarm condition type | false | AlarmConditionSpec | |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | false | DashboardIdReq | |
id | ID of the entity, time-based UUID v1 | true | string | |
schedule | JSON object representing time interval during which the rule is active | false | AlarmScheduleReq | |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
updateTime | 更新时间 | false | string(date-time) | |
updater | 更新用户 | false | string |
响应参数:
参数名称 | 参数说明 | 类型 |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
creatorName | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 描述 | string |
doActions | 执行动作 | array |
alarmProfileId | 输出目标为告警才进行配置 | string |
callType | 调用类型:sync同步/async异步,可用值:ASYNC,SYNC | string |
commandType | 命令类型:0自定义 1服务 | integer(int32) |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceId | 所属设备id | array |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
doContext | 场景联动内容 | JsonNode |
enabled | 租户状态:启用/禁用 | boolean |
entityType | 取值范围,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
outTarget | 输出目标:设备,告警,其他,可用值:DEVICE_OUT,MSG_NOTIFY,SCENE_ACT | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
thingsModelId | 服务模型ID | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
doConditions | 执行条件 | array |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | entityId列表 | array |
entityType | 触发器关联实体,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
enabled | 租户状态:启用/禁用 | boolean |
icon | 租户图标 | string |
id | ID | string |
name | 场景联动名称 | string |
organizationId | 所属组织id | string |
roleIds | 租户角色列表 | array |
status | 状态:0表示已停用,1表示启用 | integer(int32) |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggers | 触发器 | array |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | 实体ID | array |
entityType | 触发器关联实体,例如:设备ID、场景联动ID、定时任务CRON表达式,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
响应示例:
{
"createTime": "",
"creator": "",
"creatorName": "",
"defaultConfig": "",
"description": "",
"doActions": [
{
"alarmProfileId": "",
"callType": "",
"commandType": 0,
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceId": [],
"deviceProfileId": "",
"deviceType": "",
"doContext": {},
"enabled": false,
"entityType": "",
"icon": "",
"id": "",
"name": "",
"outTarget": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"thingsModelId": "",
"updateTime": "",
"updater": ""
}
],
"doConditions": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"enabled": false,
"icon": "",
"id": "",
"name": "",
"organizationId": "",
"roleIds": [],
"status": 0,
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggers": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"updateTime": "",
"updater": ""
}
删除
接口地址:/api/yt/scene_linkage
请求方式:DELETE
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
请求示例:
{
"ids": [],
"tenantId": ""
}
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
deleteDTO | DeleteDTO | body | true | DeleteDTO |
ids | 删除ID列表 | true | array | |
tenantId | 租户ID | false | string |
组织的设备集合
接口地址:/api/yt/scene_linkage/device{?organizationId}
请求方式:GET
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
organizationId | organizationId | query | true | string |
编辑
接口地址:/api/yt/scene_linkage/update
请求方式:POST
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
请求示例:
{
"createTime": "",
"creator": "",
"creatorName": "",
"defaultConfig": "",
"description": "",
"enabled": false,
"icon": "",
"id": "",
"name": "",
"organizationId": "",
"roleIds": [],
"status": 0,
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": ""
}
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
sceneLinkageDTOReq | SceneLinkageDTOReq | body | true | SceneLinkageDTOReq |
createTime | 创建时间 | false | string(date-time) | |
creator | 创建用户 | false | string | |
creatorName | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 描述 | false | string | |
doActions | 执行动作 | false | array | |
alarmProfileId | 输出目标为告警才进行配置 | false | string | |
callType | 调用类型:sync同步/async异步,可用值:ASYNC,SYNC | false | string | |
commandType | 命令类型:0自定义 1服务 | false | integer | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceId | 所属设备id | false | array | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
doContext | 场景联动内容 | false | JsonNode | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityType | 取值范围,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
outTarget | 输出目标:设备,告警,其他,可用值:DEVICE_OUT,MSG_NOTIFY,SCENE_ACT | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
thingsModelId | 服务模型ID | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
doConditions | 执行条件 | false | array | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityId | entityId列表 | false | array | |
entityType | 触发器关联实体,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggerCondition | 触发条件 | false | AlarmRuleReq | |
alarmDetails | String value representing the additional details for an alarm rule | false | string | |
condition | JSON object representing the alarm rule condition | false | AlarmConditionReq | |
condition | JSON array of alarm condition filters | false | array | |
key | JSON object for specifying alarm condition by specific key | false | AlarmConditionFilterKeyReq | |
key | String value representing the key | false | string | |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | false | string | |
predicate | JSON object representing filter condition | false | KeyFilterPredicate | |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | false | object | |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | false | string | |
spec | JSON object representing alarm condition type | false | AlarmConditionSpec | |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | false | DashboardIdReq | |
id | ID of the entity, time-based UUID v1 | true | string | |
schedule | JSON object representing time interval during which the rule is active | false | AlarmScheduleReq | |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 场景联动名称 | true | string | |
organizationId | 所属组织id | true | string | |
roleIds | 租户角色列表 | false | array | |
status | 状态:0表示已停用,1表示启用 | false | integer(int32) | |
tenantExpireTime | 租户到期时间 | false | string(date-time) | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggers | 触发器 | false | array | |
createTime | 创建时间 | false | string | |
creator | 创建用户 | false | string | |
defaultConfig | 租户默认配置 | false | string | |
description | 租户描述 | false | string | |
deviceProfileId | 设备配置ID | false | string | |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | false | string | |
enabled | 租户状态:启用/禁用 | false | boolean | |
entityId | 实体ID | false | array | |
entityType | 触发器关联实体,例如:设备ID、场景联动ID、定时任务CRON表达式,可用值:ALL,PART | false | string | |
icon | 租户图标 | false | string | |
id | ID | false | string | |
name | 租户名称 | false | string | |
roleIds | 租户角色列表 | false | array | |
sceneLinkageId | 场景联动id | false | string | |
tenantExpireTime | 租户到期时间 | false | string | |
tenantId | 租户ID | false | string | |
tenantProfileId | 租户配置 | false | string | |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | false | string | |
triggerCondition | 触发条件 | false | AlarmRuleReq | |
alarmDetails | String value representing the additional details for an alarm rule | false | string | |
condition | JSON object representing the alarm rule condition | false | AlarmConditionReq | |
condition | JSON array of alarm condition filters | false | array | |
key | JSON object for specifying alarm condition by specific key | false | AlarmConditionFilterKeyReq | |
key | String value representing the key | false | string | |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | false | string | |
predicate | JSON object representing filter condition | false | KeyFilterPredicate | |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | false | object | |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | false | string | |
spec | JSON object representing alarm condition type | false | AlarmConditionSpec | |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | false | DashboardIdReq | |
id | ID of the entity, time-based UUID v1 | true | string | |
schedule | JSON object representing time interval during which the rule is active | false | AlarmScheduleReq | |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | false | string | |
updateTime | 更新时间 | false | string | |
updater | 更新用户 | false | string | |
updateTime | 更新时间 | false | string(date-time) | |
updater | 更新用户 | false | string |
响应参数:
参数名称 | 参数说明 | 类型 |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
creatorName | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 描述 | string |
doActions | 执行动作 | array |
alarmProfileId | 输出目标为告警才进行配置 | string |
callType | 调用类型:sync同步/async异步,可用值:ASYNC,SYNC | string |
commandType | 命令类型:0自定义 1服务 | integer(int32) |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceId | 所属设备id | array |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
doContext | 场景联动内容 | JsonNode |
enabled | 租户状态:启用/禁用 | boolean |
entityType | 取值范围,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
outTarget | 输出目标:设备,告警,其他,可用值:DEVICE_OUT,MSG_NOTIFY,SCENE_ACT | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
thingsModelId | 服务模型ID | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
doConditions | 执行条件 | array |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | entityId列表 | array |
entityType | 触发器关联实体,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
enabled | 租户状态:启用/禁用 | boolean |
icon | 租户图标 | string |
id | ID | string |
name | 场景联动名称 | string |
organizationId | 所属组织id | string |
roleIds | 租户角色列表 | array |
status | 状态:0表示已停用,1表示启用 | integer(int32) |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggers | 触发器 | array |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | 实体ID | array |
entityType | 触发器关联实体,例如:设备ID、场景联动ID、定时任务CRON表达式,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
响应示例:
{
"createTime": "",
"creator": "",
"creatorName": "",
"defaultConfig": "",
"description": "",
"doActions": [
{
"alarmProfileId": "",
"callType": "",
"commandType": 0,
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceId": [],
"deviceProfileId": "",
"deviceType": "",
"doContext": {},
"enabled": false,
"entityType": "",
"icon": "",
"id": "",
"name": "",
"outTarget": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"thingsModelId": "",
"updateTime": "",
"updater": ""
}
],
"doConditions": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"enabled": false,
"icon": "",
"id": "",
"name": "",
"organizationId": "",
"roleIds": [],
"status": 0,
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggers": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"updateTime": "",
"updater": ""
}
查询(分页列表)
接口地址:/api/yt/scene_linkage{?name,organizationId,page,pageSize,status,triggers}
请求方式:GET
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
请求参数:
参数名称 | 参数说明 | 是否必须 | 数据类型 |
page | page | true | int |
pageSize | pageSize | true | int |
name | name | false | string |
status | status | false | integer(int32) |
organizationId | organizationId | false | string |
triggers | triggers | false | string |
响应参数:
参数名称 | 参数说明 | 类型 |
items | array | |
createTime | 创建时间 | string(date-time) |
creator | 创建用户 | string |
creatorName | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 描述 | string |
doActions | 执行动作 | array |
alarmProfileId | 输出目标为告警才进行配置 | string |
callType | 调用类型:sync同步/async异步,可用值:ASYNC,SYNC | string |
commandType | 命令类型:0自定义 1服务 | integer |
createTime | 创建时间 | string |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceId | 所属设备id | array |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
doContext | 场景联动内容 | JsonNode |
enabled | 租户状态:启用/禁用 | boolean |
entityType | 取值范围,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
outTarget | 输出目标:设备,告警,其他,可用值:DEVICE_OUT,MSG_NOTIFY,SCENE_ACT | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
thingsModelId | 服务模型ID | string |
updateTime | 更新时间 | string |
updater | 更新用户 | string |
doConditions | 执行条件 | array |
createTime | 创建时间 | string |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | entityId列表 | array |
entityType | 触发器关联实体,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string |
updater | 更新用户 | string |
enabled | 租户状态:启用/禁用 | boolean |
icon | 租户图标 | string |
id | ID | string |
name | 场景联动名称 | string |
organizationId | 所属组织id | string |
roleIds | 租户角色列表 | array |
status | 状态:0表示已停用,1表示启用 | integer(int32) |
tenantExpireTime | 租户到期时间 | string(date-time) |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggers | 触发器 | array |
createTime | 创建时间 | string |
creator | 创建用户 | string |
defaultConfig | 租户默认配置 | string |
description | 租户描述 | string |
deviceProfileId | 设备配置ID | string |
deviceType | 设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSOR | string |
enabled | 租户状态:启用/禁用 | boolean |
entityId | 实体ID | array |
entityType | 触发器关联实体,例如:设备ID、场景联动ID、定时任务CRON表达式,可用值:ALL,PART | string |
icon | 租户图标 | string |
id | ID | string |
name | 租户名称 | string |
roleIds | 租户角色列表 | array |
sceneLinkageId | 场景联动id | string |
tenantExpireTime | 租户到期时间 | string |
tenantId | 租户ID | string |
tenantProfileId | 租户配置 | string |
tenantStatus | 可用值:DISABLED,EXPIRED,NORMAL | string |
triggerCondition | 触发条件 | AlarmRuleRes |
alarmDetails | String value representing the additional details for an alarm rule | string |
condition | JSON object representing the alarm rule condition | AlarmConditionRes |
condition | JSON array of alarm condition filters | array |
key | JSON object for specifying alarm condition by specific key | AlarmConditionFilterKeyRes |
key | String value representing the key | string |
type | The key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIES | string |
predicate | JSON object representing filter condition | KeyFilterPredicate |
value | Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used | object |
valueType | String representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRING | string |
spec | JSON object representing alarm condition type | AlarmConditionSpec |
dashboardId | JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application | DashboardIdRes |
entityType | string,可用值:DASHBOARD | string |
id | ID of the entity, time-based UUID v1 | string |
schedule | JSON object representing time interval during which the rule is active | AlarmScheduleRes |
type | 可用值:ANY_TIME,CUSTOM,SPECIFIC_TIME | string |
triggerType | 触发器类型,可用值:DEVICE_TRIGGER,HAND_ACT,SCENE_TRIGGER,SCHEDULE_TRIGGER | string |
updateTime | 更新时间 | string |
updater | 更新用户 | string |
updateTime | 更新时间 | string(date-time) |
updater | 更新用户 | string |
total | integer(int32) |
响应示例:
{
"items": [
{
"createTime": "",
"creator": "",
"creatorName": "",
"defaultConfig": "",
"description": "",
"doActions": [
{
"alarmProfileId": "",
"callType": "",
"commandType": 0,
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceId": [],
"deviceProfileId": "",
"deviceType": "",
"doContext": {},
"enabled": false,
"entityType": "",
"icon": "",
"id": "",
"name": "",
"outTarget": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"thingsModelId": "",
"updateTime": "",
"updater": ""
}
],
"doConditions": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"enabled": false,
"icon": "",
"id": "",
"name": "",
"organizationId": "",
"roleIds": [],
"status": 0,
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggers": [
{
"createTime": "",
"creator": "",
"defaultConfig": "",
"description": "",
"deviceProfileId": "",
"deviceType": "",
"enabled": false,
"entityId": [],
"entityType": "",
"icon": "",
"id": "",
"name": "",
"roleIds": [],
"sceneLinkageId": "",
"tenantExpireTime": "",
"tenantId": "",
"tenantProfileId": "",
"tenantStatus": "",
"triggerCondition": {
"alarmDetails": "",
"condition": {
"condition": [
{
"key": {
"key": "temp",
"type": "TIME_SERIES"
},
"predicate": {},
"value": {},
"valueType": "NUMERIC"
}
],
"spec": {}
},
"dashboardId": {
"entityType": "DASHBOARD",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"schedule": {
"type": ""
}
},
"triggerType": "",
"updateTime": "",
"updater": ""
}
],
"updateTime": "",
"updater": ""
}
],
"total": 0
}
启用或禁用场景联动
接口地址:/api/yt/convert/update/scene
请求方式:POST
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
请求示例:
{
"configuration": {},
"id": "",
"status": 0
}
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 |
convertReqDTO | ConvertReqDTO | body | true | ConvertReqDTO |
configuration | false | JsonNode | ||
id | id | true | string | |
status | 状态:0禁用 1启用 | true | integer(int32) |
响应参数:
参数名称 | 参数说明 | 类型 |
connections | List of JSON objects that represent connections between rule nodes | array |
fromIndex | Index of rule node in the ‘nodes’ array of the RuleChainMetaData. Indicates the ‘from’ part of the connection. | integer(int32) |
toIndex | Index of rule node in the ‘nodes’ array of the RuleChainMetaData. Indicates the ‘to’ part of the connection. | integer(int32) |
type | Type of the relation. Typically indicated the result of processing by the ‘from’ rule node. For example, ‘Success’ or ‘Failure’ | string |
firstNodeIndex | Index of the first rule node in the ‘nodes’ list | integer(int32) |
nodes | List of rule node JSON objects | array |
additionalInfo | Additional parameters of the rule node. Contains ‘layoutX’ and ‘layoutY’ properties for visualization. | JsonNode |
configuration | JSON with the rule node configuration. Structure depends on the rule node implementation. | JsonNode |
createdTime | Timestamp of the rule node creation, in milliseconds | integer(int64) |
debugMode | Enable/disable debug. | boolean |
id | JSON object with the Rule Node Id. Specify this field to update the Rule Node. Referencing non-existing Rule Node Id will cause error. Omit this field to create new rule node. | RuleNodeId |
entityType | string,可用值:RULE_NODE | string |
id | ID of the entity, time-based UUID v1 | string |
name | User defined name of the rule node. Used on UI and for logging. | string |
ruleChainId | JSON object with the Rule Chain Id. | RuleChainId |
entityType | string,可用值:RULE_CHAIN | string |
id | ID of the entity, time-based UUID v1 | string |
type | Full Java Class Name of the rule node implementation. | string |
ruleChainConnections | List of JSON objects that represent connections between rule nodes and other rule chains. | array |
additionalInfo | JSON object with the additional information about the connection. | JsonNode |
fromIndex | Index of rule node in the ‘nodes’ array of the RuleChainMetaData. Indicates the ‘from’ part of the connection. | integer(int32) |
targetRuleChainId | JSON object with the Rule Chain Id. | RuleChainId |
entityType | string,可用值:RULE_CHAIN | string |
id | ID of the entity, time-based UUID v1 | string |
type | Type of the relation. Typically indicated the result of processing by the ‘from’ rule node. For example, ‘Success’ or ‘Failure’ | string |
ruleChainId | JSON object with Rule Chain Id. | RuleChainId |
entityType | string,可用值:RULE_CHAIN | string |
id | ID of the entity, time-based UUID v1 | string(uuid) |
响应示例:
{
"connections": [
{
"fromIndex": 0,
"toIndex": 0,
"type": ""
}
],
"firstNodeIndex": 0,
"nodes": [
{
"additionalInfo": {},
"configuration": {},
"debugMode": false,
"id": {
"entityType": "RULE_NODE",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"name": "Process sensor reading",
"type": "com.mycompany.iot.rule.engine.ProcessingNode"
}
],
"ruleChainConnections": [
{
"additionalInfo": {},
"fromIndex": 0,
"targetRuleChainId": {
"entityType": "RULE_CHAIN",
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"type": ""
}
]
}