告警和场景格式
小于 1 分钟
提示
动作和触发器用在场景联动、告警和定时模块
# 动作
#type:1=属性,2=功能
#deviceId:可选
#serialNumber:可选,设备编号
#deviceName:可选
[{
"id": "",
"name": "",
"value": "",
"type": 1,
"deviceId": 1,
"deviceName": "",
"serialNumber": "D99887",
"productId": 1,
"productName": "",
}]
# 触发器
#operator: 等于、不等于、大于、小于、大于等于、小于等于、包含、不包含(字符串、数组、)
#type:1=属性,2=功能,3=事件,4=设备升级,5=设备上线,6=设备下线
#source:1=设备触发,2=定时触发
#isAdvance:是否自定义CRON表达式0=否,1=是
#jobId:任务ID
#cronExpression:CRON表达式
[{
"id": "",
"name": "",
"value": "",
"operator": "",
"type": 1,
"source": 1,
"deviceId": 1,
"deviceName": "",
"serialNumber": "D99887",
"productId": 1,
"productName": "",
"jobId": 0,
"isAdvance": 0,
"cronExpression": "",
}]