|
152 | 152 | "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>." |
153 | 153 | } |
154 | 154 | ] |
| 155 | +<<<<<<< Updated upstream |
| 156 | +======= |
| 157 | + }, |
| 158 | + { |
| 159 | + "function": "TEXT_SECTION_HEADERS", |
| 160 | + "type": { |
| 161 | + "dataType": "boolean", |
| 162 | + "elements": [ |
| 163 | + { "elementType": "input", "elementOptions": [{ "type": "checkbox" }], "transformers": [] } |
| 164 | + ] |
| 165 | + }, |
| 166 | + "default_value": true, |
| 167 | + "options": [], |
| 168 | + "localized": ["name", "description"], |
| 169 | + "name": [ |
| 170 | + { |
| 171 | + "language_code": "en_us", |
| 172 | + "string": "Text Section Headers" |
| 173 | + } |
| 174 | + ], |
| 175 | + "description": [ |
| 176 | + { |
| 177 | + "language_code": "en_us", |
| 178 | + "string": "Enable or disable section titles (e.g. <code>🆕 New devices \\n---------</code>) in text notifications. Enabled by default for backward compatibility." |
| 179 | + } |
| 180 | + ] |
| 181 | + }, |
| 182 | + { |
| 183 | + "function": "TEXT_TEMPLATE_new_devices", |
| 184 | + "type": { |
| 185 | + "dataType": "string", |
| 186 | + "elements": [ |
| 187 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 188 | + ] |
| 189 | + }, |
| 190 | + "default_value": "", |
| 191 | + "options": [], |
| 192 | + "localized": ["name", "description"], |
| 193 | + "name": [ |
| 194 | + { |
| 195 | + "language_code": "en_us", |
| 196 | + "string": "Text Template: New Devices" |
| 197 | + } |
| 198 | + ], |
| 199 | + "description": [ |
| 200 | + { |
| 201 | + "language_code": "en_us", |
| 202 | + "string": "Custom text template for new 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>, <code>{devComments}</code>." |
| 203 | + } |
| 204 | + ] |
| 205 | + }, |
| 206 | + { |
| 207 | + "function": "TEXT_TEMPLATE_down_devices", |
| 208 | + "type": { |
| 209 | + "dataType": "string", |
| 210 | + "elements": [ |
| 211 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 212 | + ] |
| 213 | + }, |
| 214 | + "default_value": "", |
| 215 | + "options": [], |
| 216 | + "localized": ["name", "description"], |
| 217 | + "name": [ |
| 218 | + { |
| 219 | + "language_code": "en_us", |
| 220 | + "string": "Text Template: Down Devices" |
| 221 | + } |
| 222 | + ], |
| 223 | + "description": [ |
| 224 | + { |
| 225 | + "language_code": "en_us", |
| 226 | + "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>, <code>{devComments}</code>." |
| 227 | + } |
| 228 | + ] |
| 229 | + }, |
| 230 | + { |
| 231 | + "function": "TEXT_TEMPLATE_down_reconnected", |
| 232 | + "type": { |
| 233 | + "dataType": "string", |
| 234 | + "elements": [ |
| 235 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 236 | + ] |
| 237 | + }, |
| 238 | + "default_value": "", |
| 239 | + "options": [], |
| 240 | + "localized": ["name", "description"], |
| 241 | + "name": [ |
| 242 | + { |
| 243 | + "language_code": "en_us", |
| 244 | + "string": "Text Template: Reconnected" |
| 245 | + } |
| 246 | + ], |
| 247 | + "description": [ |
| 248 | + { |
| 249 | + "language_code": "en_us", |
| 250 | + "string": "Custom text template for reconnected device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eve_MAC}) reconnected at {eve_DateTime}</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>, <code>{devComments}</code>." |
| 251 | + } |
| 252 | + ] |
| 253 | + }, |
| 254 | + { |
| 255 | + "function": "TEXT_TEMPLATE_events", |
| 256 | + "type": { |
| 257 | + "dataType": "string", |
| 258 | + "elements": [ |
| 259 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 260 | + ] |
| 261 | + }, |
| 262 | + "default_value": "", |
| 263 | + "options": [], |
| 264 | + "localized": ["name", "description"], |
| 265 | + "name": [ |
| 266 | + { |
| 267 | + "language_code": "en_us", |
| 268 | + "string": "Text Template: Events" |
| 269 | + } |
| 270 | + ], |
| 271 | + "description": [ |
| 272 | + { |
| 273 | + "language_code": "en_us", |
| 274 | + "string": "Custom text template for event notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eve_MAC}) {eve_EventType} at {eve_DateTime}</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>, <code>{devComments}</code>." |
| 275 | + } |
| 276 | + ] |
| 277 | + }, |
| 278 | + { |
| 279 | + "function": "TEXT_TEMPLATE_plugins", |
| 280 | + "type": { |
| 281 | + "dataType": "string", |
| 282 | + "elements": [ |
| 283 | + { "elementType": "input", "elementOptions": [], "transformers": [] } |
| 284 | + ] |
| 285 | + }, |
| 286 | + "default_value": "", |
| 287 | + "options": [], |
| 288 | + "localized": ["name", "description"], |
| 289 | + "name": [ |
| 290 | + { |
| 291 | + "language_code": "en_us", |
| 292 | + "string": "Text Template: Plugins" |
| 293 | + } |
| 294 | + ], |
| 295 | + "description": [ |
| 296 | + { |
| 297 | + "language_code": "en_us", |
| 298 | + "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>." |
| 299 | + } |
| 300 | + ] |
| 301 | +>>>>>>> Stashed changes |
155 | 302 | } |
156 | 303 | ], |
157 | 304 |
|
|
0 commit comments