|
180 | 180 | "string": "You can specify a SQL where condition to filter out Events from notifications. For example <code>AND devLastIP NOT LIKE '192.168.3.%'</code> will always exclude any Event notifications for all devices with the IP starting with <code>192.168.3.%</code>." |
181 | 181 | } |
182 | 182 | ] |
| 183 | + }, |
| 184 | + { |
| 185 | + "function": "TEXT_SECTION_HEADERS", |
| 186 | + "type": { |
| 187 | + "dataType": "boolean", |
| 188 | + "elements": [ |
| 189 | + { "elementType": "input", "elementOptions": [{ "type": "checkbox" }], "transformers": [] } |
| 190 | + ] |
| 191 | + }, |
| 192 | + "default_value": true, |
| 193 | + "options": [], |
| 194 | + "localized": ["name", "description"], |
| 195 | + "name": [ |
| 196 | + { |
| 197 | + "language_code": "en_us", |
| 198 | + "string": "Text Section Headers" |
| 199 | + } |
| 200 | + ], |
| 201 | + "description": [ |
| 202 | + { |
| 203 | + "language_code": "en_us", |
| 204 | + "string": "Enable or disable section titles (e.g. <code>🆕 New devices \\n---------</code>) in text notifications. Enabled by default for backward compatibility." |
| 205 | + } |
| 206 | + ] |
| 207 | + }, |
| 208 | + { |
| 209 | + "function": "TEXT_TEMPLATE_new_devices", |
| 210 | + "type": { |
| 211 | + "dataType": "string", |
| 212 | + "elements": [ |
| 213 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 214 | + ] |
| 215 | + }, |
| 216 | + "default_value": "", |
| 217 | + "options": [], |
| 218 | + "localized": ["name", "description"], |
| 219 | + "name": [ |
| 220 | + { |
| 221 | + "language_code": "en_us", |
| 222 | + "string": "Text Template: New Devices" |
| 223 | + } |
| 224 | + ], |
| 225 | + "description": [ |
| 226 | + { |
| 227 | + "language_code": "en_us", |
| 228 | + "string": "Custom text template for new device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{Device name} ({MAC}) - {IP}</code>. Leave empty for default formatting. Available fields: <code>{MAC}</code>, <code>{Datetime}</code>, <code>{IP}</code>, <code>{Event Type}</code>, <code>{Device name}</code>, <code>{Comments}</code>." |
| 229 | + } |
| 230 | + ] |
| 231 | + }, |
| 232 | + { |
| 233 | + "function": "TEXT_TEMPLATE_down_devices", |
| 234 | + "type": { |
| 235 | + "dataType": "string", |
| 236 | + "elements": [ |
| 237 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 238 | + ] |
| 239 | + }, |
| 240 | + "default_value": "", |
| 241 | + "options": [], |
| 242 | + "localized": ["name", "description"], |
| 243 | + "name": [ |
| 244 | + { |
| 245 | + "language_code": "en_us", |
| 246 | + "string": "Text Template: Down Devices" |
| 247 | + } |
| 248 | + ], |
| 249 | + "description": [ |
| 250 | + { |
| 251 | + "language_code": "en_us", |
| 252 | + "string": "Custom text template for down device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eve_MAC}) - {eve_IP}</code>. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eve_MAC}</code>, <code>{devVendor}</code>, <code>{eve_IP}</code>, <code>{eve_DateTime}</code>, <code>{eve_EventType}</code>." |
| 253 | + } |
| 254 | + ] |
| 255 | + }, |
| 256 | + { |
| 257 | + "function": "TEXT_TEMPLATE_down_reconnected", |
| 258 | + "type": { |
| 259 | + "dataType": "string", |
| 260 | + "elements": [ |
| 261 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 262 | + ] |
| 263 | + }, |
| 264 | + "default_value": "", |
| 265 | + "options": [], |
| 266 | + "localized": ["name", "description"], |
| 267 | + "name": [ |
| 268 | + { |
| 269 | + "language_code": "en_us", |
| 270 | + "string": "Text Template: Reconnected" |
| 271 | + } |
| 272 | + ], |
| 273 | + "description": [ |
| 274 | + { |
| 275 | + "language_code": "en_us", |
| 276 | + "string": "Custom text template for reconnected device notifications. Use <code>{FieldName}</code> placeholders. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eve_MAC}</code>, <code>{devVendor}</code>, <code>{eve_IP}</code>, <code>{eve_DateTime}</code>, <code>{eve_EventType}</code>." |
| 277 | + } |
| 278 | + ] |
| 279 | + }, |
| 280 | + { |
| 281 | + "function": "TEXT_TEMPLATE_events", |
| 282 | + "type": { |
| 283 | + "dataType": "string", |
| 284 | + "elements": [ |
| 285 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 286 | + ] |
| 287 | + }, |
| 288 | + "default_value": "", |
| 289 | + "options": [], |
| 290 | + "localized": ["name", "description"], |
| 291 | + "name": [ |
| 292 | + { |
| 293 | + "language_code": "en_us", |
| 294 | + "string": "Text Template: Events" |
| 295 | + } |
| 296 | + ], |
| 297 | + "description": [ |
| 298 | + { |
| 299 | + "language_code": "en_us", |
| 300 | + "string": "Custom text template for event notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{Device name} ({MAC}) {Event Type} at {Datetime}</code>. Leave empty for default formatting. Available fields: <code>{MAC}</code>, <code>{Datetime}</code>, <code>{IP}</code>, <code>{Event Type}</code>, <code>{Device name}</code>, <code>{Comments}</code>." |
| 301 | + } |
| 302 | + ] |
| 303 | + }, |
| 304 | + { |
| 305 | + "function": "TEXT_TEMPLATE_plugins", |
| 306 | + "type": { |
| 307 | + "dataType": "string", |
| 308 | + "elements": [ |
| 309 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 310 | + ] |
| 311 | + }, |
| 312 | + "default_value": "", |
| 313 | + "options": [], |
| 314 | + "localized": ["name", "description"], |
| 315 | + "name": [ |
| 316 | + { |
| 317 | + "language_code": "en_us", |
| 318 | + "string": "Text Template: Plugins" |
| 319 | + } |
| 320 | + ], |
| 321 | + "description": [ |
| 322 | + { |
| 323 | + "language_code": "en_us", |
| 324 | + "string": "Custom text template for plugin event notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{Plugin}: {Object_PrimaryId} - {Status}</code>. Leave empty for default formatting. Available fields: <code>{Plugin}</code>, <code>{Object_PrimaryId}</code>, <code>{Object_SecondaryId}</code>, <code>{DateTimeChanged}</code>, <code>{Watched_Value1}</code>, <code>{Watched_Value2}</code>, <code>{Watched_Value3}</code>, <code>{Watched_Value4}</code>, <code>{Status}</code>." |
| 325 | + } |
| 326 | + ] |
183 | 327 | } |
184 | 328 | ], |
185 | 329 |
|
|
0 commit comments