告警和场景格式
提示
动作和触发器用在场景联动、告警和定时模块
# 动作
#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": "",
}]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40