Wiki source code of How to set threshold alarm and get Email notification
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
3.1 | 1 | (% class="wikigeneratedid" id="H" %) |
| 2 | 本教程目标是指导用户如何在无需编写代码/修改规则链的情况下为每个设备配置报警规则并设置邮件通知 | ||
| |
1.2 | 3 | |
| |
3.1 | 4 | {{toc/}} |
| |
1.2 | 5 | |
| |
45.1 | 6 | = 1. Import dashboard = |
| |
1.2 | 7 | |
| |
9.1 | 8 | The Dashboard shown below displays all devices by default. [[attach:set_alarm.json||target="_blank"]] |
| |
1.2 | 9 | |
| |
34.3 | 10 | [[image:https://wiki.thingseye.io/xwiki/bin/download/Downlink%20Command%20Guide/WebHome/1762933458042-294.png?width=645&height=565&rev=1.1||alt="1762933458042-294.png" height="898" width="1025"]] |
| |
1.2 | 11 | |
| |
8.1 | 12 | [[image:1763627459220-746.png]] |
| |
5.1 | 13 | |
| |
35.2 | 14 | |
| |
34.2 | 15 | Each device's threshold are managed separately. Clicking on a device in the device list on the left will display the current device status and preset thresholds/email addresses on the right. |
| |
5.1 | 16 | |
| |
44.1 | 17 | [[image:1763713260857-974.png||height="792" width="1029"]] |
| |
34.2 | 18 | |
| 19 | |||
| |
9.1 | 20 | ---- |
| 21 | |||
| |
45.1 | 22 | = (% id="cke_bm_9685S" style="display:none" %) (%%)2. Configure profile rules = |
| |
1.2 | 23 | |
| |
45.1 | 24 | == 2.1 Create a condition to trigger an alarm when a threshold is reached. == |
| |
1.2 | 25 | |
| |
34.3 | 26 | (% class="wikigeneratedid" id="H70B951FB7F168F9156FE68078FDB51657F168F916A215F0F5E7665B05EFA62A58B6689C45219" %) |
| |
45.1 | 27 | Click the edit icon to enter edit mode and create a new alarm rule. |
| |
1.2 | 28 | |
| |
34.3 | 29 | (% class="wikigeneratedid" id="H-1" %) |
| 30 | [[image:1763630110726-980.png||height="720" width="1014"]] | ||
| |
12.1 | 31 | |
| |
34.3 | 32 | [[image:1763630224004-924.png||height="720" width="1014"]] |
| |
1.2 | 33 | |
| |
34.3 | 34 | [[image:1763630671736-678.png||height="721" width="1015"]] |
| |
11.1 | 35 | |
| |
34.3 | 36 | [[image:1763630710302-584.png||height="721" width="1015"]] |
| |
12.1 | 37 | |
| |
34.3 | 38 | [[image:1763630805148-569.png||height="721" width="1015"]] |
| |
11.1 | 39 | |
| |
34.3 | 40 | [[image:1763630987781-241.png||height="721" width="1015"]] |
| |
11.1 | 41 | |
| |
37.1 | 42 | [[image:1763714060349-779.png||height="782" width="1016"]] |
| |
11.1 | 43 | |
| |
12.1 | 44 | |
| |
34.3 | 45 | [[image:1763631366289-693.png||height="720" width="1014"]] |
| |
12.1 | 46 | |
| |
34.3 | 47 | [[image:1763709709956-185.png||height="722" width="1015"]] |
| |
12.1 | 48 | |
| |
34.3 | 49 | |
| 50 | |||
| |
12.1 | 51 | ---- |
| 52 | |||
| |
45.1 | 53 | == 2.2 Set a clear condition to clear the alarm when the data returns to normal. == |
| |
12.1 | 54 | |
| |
45.1 | 55 | The steps are similar to Create alarm, only the values are set in reverse. |
| |
12.1 | 56 | |
| |
34.3 | 57 | [[image:1763632387865-386.png||height="720" width="1014"]] |
| |
12.1 | 58 | |
| |
34.3 | 59 | [[image:1763693498016-737.png||height="720" width="1014"]] |
| |
12.1 | 60 | |
| |
34.3 | 61 | [[image:1763693573052-369.png||height="723" width="1018"]] |
| |
12.1 | 62 | |
| |
34.3 | 63 | [[image:1763708672557-593.png||height="723" width="1017"]] |
| |
13.1 | 64 | |
| |
14.1 | 65 | |
| |
45.1 | 66 | **Save after set** |
| 67 | |||
| |
34.3 | 68 | [[image:1763708628399-171.png||height="723" width="1017"]] |
| |
29.1 | 69 | |
| |
34.3 | 70 | [[image:1763694048124-392.png||height="722" width="1017"]] |
| |
14.1 | 71 | |
| |
34.3 | 72 | [[image:1763694065009-504.png||height="722" width="1017"]] |
| |
1.2 | 73 | |
| 74 | |||
| |
34.3 | 75 | ---- |
| |
17.1 | 76 | |
| |
45.1 | 77 | = 3. Configure the threshold input box = |
| |
1.2 | 78 | |
| |
45.1 | 79 | == 3.1 Select the Realtime data key to display == |
| |
14.1 | 80 | |
| |
45.1 | 81 | Return to the dashboard and click on the device you want to edit. |
| |
36.1 | 82 | |
| 83 | [[image:1763714842488-945.png||height="784" width="1018"]] | ||
| 84 | |||
| 85 | [[image:1763715443568-173.png||height="784" width="1019"]] | ||
| 86 | |||
| |
15.2 | 87 | |
| |
45.1 | 88 | **Click "Edit mode" to enter edit mode.** |
| 89 | |||
| |
36.1 | 90 | [[image:1763715522992-941.png||height="785" width="1020"]] |
| |
15.2 | 91 | |
| |
36.1 | 92 | [[image:1763715545212-375.png||height="786" width="1021"]] |
| |
15.2 | 93 | |
| 94 | |||
| |
45.1 | 95 | **Delete the default key and select the key you want to display.** |
| |
17.4 | 96 | |
| |
42.2 | 97 | [[image:1763717628344-632.png||height="789" width="1024"]] |
| |
15.2 | 98 | |
| |
36.1 | 99 | |
| |
45.1 | 100 | **Save after confirmation.** |
| 101 | |||
| |
42.2 | 102 | [[image:1763717656075-762.png||height="790" width="1026"]] |
| |
36.1 | 103 | |
| |
42.2 | 104 | [[image:1763717678221-857.png||height="792" width="1029"]] |
| |
19.1 | 105 | |
| |
31.1 | 106 | |
| |
17.3 | 107 | ---- |
| 108 | |||
| |
45.1 | 109 | == 3.2 Create Threshold KEY == |
| |
15.2 | 110 | |
| |
45.1 | 111 | Enter edit mode and select the Threshold Setting component. |
| |
15.2 | 112 | |
| |
42.2 | 113 | [[image:1763717776928-677.png||height="794" width="1031"]] |
| |
15.2 | 114 | |
| |
42.2 | 115 | [[image:1763717871745-156.png||height="794" width="1031"]] |
| |
15.2 | 116 | |
| 117 | |||
| |
45.1 | 118 | **Save after add.** |
| 119 | |||
| |
42.2 | 120 | [[image:1763718016288-797.png||height="795" width="1033"]] |
| |
17.1 | 121 | |
| |
42.2 | 122 | [[image:1763718040563-785.png||height="797" width="1035"]] |
| |
40.1 | 123 | |
| |
34.3 | 124 | ---- |
| |
1.2 | 125 | |
| |
45.1 | 126 | == **3.3 Example** == |
| |
18.2 | 127 | |
| |
42.2 | 128 | [[image:1763718234145-302.png||height="799" width="1037"]] |
| |
18.2 | 129 | |
| |
34.3 | 130 | |
| |
45.1 | 131 | (% id="cke_bm_30710S" style="display:none" %) (%%)**Example of an alert email received:** |
| 132 | |||
| |
34.3 | 133 | [[image:1763707708365-348.png]] |
| 134 | |||
| 135 | |||
| 136 | |||
| |
17.3 | 137 | ---- |
| 138 | |||
| |
45.1 | 139 | = 4. Configure Notification (only required for initial use) = |
| |
1.2 | 140 | |
| |
45.1 | 141 | If this is the first time configuring the email sending function, you also need to configure the Notification to specify the recipient/template/sending rules. |
| |
34.1 | 142 | |
| |
45.1 | 143 | == 4.1 Configure Recipients == |
| |
2.1 | 144 | |
| |
21.1 | 145 | (% class="wikigeneratedid" id="H" %) |
| |
22.1 | 146 | [[image:1763695480359-924.png||height="721" width="1015"]] |
| |
2.1 | 147 | |
| |
21.1 | 148 | (% class="wikigeneratedid" id="H-1" %) |
| |
22.1 | 149 | [[image:1763696273020-168.png||height="721" width="1015"]] |
| |
2.1 | 150 | |
| |
21.1 | 151 | (% class="wikigeneratedid" id="H-2" %) |
| |
22.1 | 152 | [[image:1763696322001-489.png||height="721" width="1015"]] |
| |
2.1 | 153 | |
| |
21.1 | 154 | (% class="wikigeneratedid" %) |
| |
22.1 | 155 | [[image:1763696373932-724.png||height="722" width="1015"]] |
| |
2.1 | 156 | |
| 157 | |||
| |
22.1 | 158 | ---- |
| |
21.1 | 159 | |
| |
45.1 | 160 | == 4.2 Configuring Templates == |
| |
2.1 | 161 | |
| |
24.1 | 162 | [[image:1763704822528-793.png||height="721" width="1014"]] |
| |
2.1 | 163 | |
| |
45.1 | 164 | **Set Compose** |
| |
2.1 | 165 | |
| |
24.1 | 166 | (% class="box" %) |
| 167 | ((( | ||
| |
25.1 | 168 | **Web** |
| 169 | |||
| 170 | **Subjtct:**${alarmOriginatorName} ${alarmType} | ||
| 171 | |||
| 172 | **Message:**${alarmOriginatorName} alarmed ${alarmType} | ||
| 173 | |||
| 174 | **Email** | ||
| 175 | |||
| 176 | **Subjtct:**${alarmOriginatorName} ${alarmType} | ||
| 177 | |||
| 178 | |||
| 179 | **Message:**Hi ${recipientFirstName:capitalize} ${recipientLastName:lowerCase} | ||
| 180 | |||
| 181 | The ${alarmOriginatorName} alarmed ${alarmType} ,PLZ check | ||
| |
24.1 | 182 | ))) |
| |
2.1 | 183 | |
| |
25.1 | 184 | [[image:1763705354353-222.png||height="719" width="1012"]] |
| |
21.1 | 185 | |
| |
25.1 | 186 | [[image:1763705373057-540.png||height="719" width="1012"]] |
| |
21.1 | 187 | |
| 188 | |||
| |
25.1 | 189 | ---- |
| |
21.1 | 190 | |
| |
45.1 | 191 | == 4.3 Configure Notification Rules == |
| |
3.1 | 192 | |
| |
25.2 | 193 | [[image:1763705587312-647.png||height="719" width="1012"]] |
| |
3.1 | 194 | |
| |
25.2 | 195 | [[image:1763706113413-196.png||height="721" width="1015"]] |
| |
3.1 | 196 | |
| |
25.2 | 197 | [[image:1763706072650-624.png||height="722" width="1016"]] |
| |
3.1 | 198 | |
| |
25.2 | 199 | [[image:1763706241273-512.png||height="722" width="1016"]] |
| |
3.1 | 200 | |
| |
27.1 | 201 | [[image:1763707736962-945.png||height="723" width="1017"]] |
| |
3.1 | 202 | |
| 203 | |||
| |
51.1 | 204 | ---- |
| |
3.1 | 205 | |
| |
51.1 | 206 | = Extended content: = |
| |
27.1 | 207 | |
| |
45.1 | 208 | = 5. What if I want to send an email to a specific recipient? = |
| |
4.1 | 209 | |
| |
49.2 | 210 | Currently, it supports three recipient types: Platform users, Slack, and Microsoft Teams. You can create a user using the email address you want to receive emails from, and then select the recipient in Platform users -> UserList. |
| |
4.1 | 211 | |
| |
49.1 | 212 | [[image:1763970065522-362.png||height="550" width="1017"]] |
| |
4.1 | 213 | |
| |
49.1 | 214 | [[image:1763970125819-288.png||height="550" width="1017"]] |
| |
4.1 | 215 | |
| |
49.1 | 216 | [[image:1763970168381-554.png||height="551" width="1019"]] |
| |
4.1 | 217 | |
| |
49.1 | 218 | [[image:1763970202306-593.png||height="552" width="1021"]] |
| 219 | |||
| 220 | |||
| 221 | ---- | ||
| 222 | |||
| |
45.1 | 223 | = 6. How to set up a separate page for each device for easier management? = |
| |
4.1 | 224 | |
| |
51.1 | 225 | Assuming you understand the above settings, it is recommended to create a new state in the existing dashboard and use a button to navigate between states. |
| |
33.1 | 226 | |
| |
51.1 | 227 | == 6.1 Open the existing dashboard and the Set Alarm dashboard respectively. == |
| |
33.1 | 228 | |
| |
51.1 | 229 | [[image:1763113752314-462.png||height="859" width="1024"]] |
| 230 | |||
| 231 | |||
| 232 | Create a new State | ||
| 233 | |||
| 234 | [[image:1763113805008-742.png||height="812" width="1025"]][[image:1763113947981-827.png||height="812" width="1025"]] | ||
| 235 | |||
| 236 | Create a Button for navigation. | ||
| 237 | |||
| 238 | [[image:1763114115290-439.png||height="622" width="1025"]][[image:1763114153772-225.png||height="811" width="1025"]][[image:1763114043202-761.png||height="811" width="1025"]][[image:1763114248605-459.png||height="812" width="1025"]] | ||
| 239 | |||
| 240 | Switch to the Set Alarm page and copy the contents of the Set Alarm dashboard one by one. | ||
| 241 | |||
| 242 | [[image:1763114331385-139.png||height="467" width="1026"]] | ||
| 243 | |||
| 244 | [[image:1763114412466-819.png||height="573" width="1028"]] | ||
| 245 | |||
| 246 | Similarly, create a button to redirect back to the homepage. | ||
| 247 | |||
| 248 | [[image:1763114497982-244.png||height="1058" width="1029"]] | ||
| 249 | |||
| 250 | You can now freely navigate between the homepage and the Set Alarm page. | ||
| 251 | |||
| 252 | [[image:1763114539794-103.png||height="1060" width="1031"]] | ||
| 253 | |||
| 254 | |||
| |
42.2 | 255 |