1.json
3.73 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"id": "5445f670-8946-11ec-ac19-e398562c8b61",
"name": "一氧化碳检测",
"enabled": false,
"description": "针对一氧化碳有害气体检测",
"tenantId": "de10f9e0-8892-11ec-ac19-e398562c8b61",
"profileData": {
"configuration": {
"type": "DEFAULT"
},
"transportConfiguration": {
"type": "DEFAULT"
},
"provisionConfiguration": {
"type": "DISABLED",
"provisionDeviceSecret": null
},
"alarms": [
{
"id": "5d11af7e-71ce-44ef-b34b-6b1a2425f25c",
"alarmType": "气体浓度告警",
"createRules": {
"MAJOR": {
"condition": {
"condition": [
{
"key": {
"type": "TIME_SERIES",
"key": "CO"
},
"valueType": "NUMERIC",
"value": null,
"predicate": {
"type": "NUMERIC",
"operation": "GREATER",
"value": {
"defaultValue": 100,
"userValue": null,
"dynamicValue": null
}
}
}
],
"spec": {
"type": "SIMPLE"
}
},
"schedule": {
"type": "ANY_TIME"
},
"alarmDetails": "告警",
"dashboardId": null
},
"MINOR": {
"condition": {
"condition": [
{
"key": {
"type": "TIME_SERIES",
"key": "CO"
},
"valueType": "NUMERIC",
"value": null,
"predicate": {
"type": "NUMERIC",
"operation": "GREATER",
"value": {
"defaultValue": 100,
"userValue": null,
"dynamicValue": null
}
}
}
],
"spec": {
"type": "SIMPLE"
}
},
"schedule": {
"type": "ANY_TIME"
},
"alarmDetails": "告警",
"dashboardId": null
}
},
"clearRule": {
"condition": {
"condition": [
{
"key": {
"type": "TIME_SERIES",
"key": "CO"
},
"valueType": "NUMERIC",
"value": null,
"predicate": {
"type": "NUMERIC",
"operation": "LESS_OR_EQUAL",
"value": {
"defaultValue": 100,
"userValue": null,
"dynamicValue": null
}
}
}
],
"spec": {
"type": "SIMPLE"
}
},
"schedule": {
"type": "ANY_TIME"
},
"alarmDetails": "清除告警",
"dashboardId": null
},
"propagate": true,
"propagateRelationTypes": ["CO"]
}
]
},
"defaultRuleChainId": "de8bf640-8892-11ec-ac19-e398562c8b61",
"alarmProfile": {
"id": "e822cccb-7f00-487e-9ece-790f4d145947",
"creator": "b75f1c80-0f94-4a06-84ef-253962bbfe9e",
"createTime": "2022-02-09 09:19:29",
"enabled": false,
"tenantId": "de10f9e0-8892-11ec-ac19-e398562c8b61",
"alarmContactId": "8aff39c6-af9c-416a-b110-601183e39da0",
"deviceProfileId": "5445f670-8946-11ec-ac19-e398562c8b61",
"messageMode": "PHONE_MESSAGE"
},
"defaultQueueName": "Main"
}