You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-admin-docs/src/main/asciidoc/server-notifications.adoc
+67-50Lines changed: 67 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,55 +1,5 @@
1
1
=== Notifications ===
2
2
3
-
4
-
[[reminder-notifications]]
5
-
==== Reminder Notifications ====
6
-
The `RemindingNotifier` sends reminders for down/offline applications, it delegates the sending of notifications to another notifier.
7
-
8
-
By default a reminder is triggered when a registered application changes to `DOWN` or `OFFLINE`. You can alter this behaviour via `setReminderStatuses()`. The reminder ends when either the status changes to a non-triggering status or the regarding application gets deregistered.
9
-
10
-
By default the reminders are sent every 10 minutes, to change this use `setReminderPeriod()`. The `RemindingNotifier` itself doesn't start the background thread to send the reminders, you need to take care of this as shown in the given example below;
<2> Schedules sending of due reminders every 10 seconds.
32
-
33
-
34
-
[[filtering-notifications]]
35
-
==== Filtering Notifications ====
36
-
The `FilteringNotifier` allows you to filter certain notification based on rules you can add/remove at runtime. It delegates the sending of notifications to another notifier.
37
-
38
-
If you add a `FilteringNotifier` to your `ApplicationContext` a RESTful interface on `notifications/filter` gets available.
39
-
40
-
This notifier is useful if you don't want receive notifications when deploying your applications. Before stopping the application you can add an (expiring) filter either via a `POST` request.
<1> Add the `FilteringNotifier` bean using a delegate (e.g. `MailNotifier` when configured)
48
-
<2> Add the `RemindingNotifier` as primary bean using the `FilteringNotifier` as delegate.
49
-
50
-
TIP: This example combines the reminding and filtering notifiers. This allows you to get notifications after the deployed application hasn't restarted in a certain amount of time (until the filter expires).
51
-
52
-
53
3
[[mail-notifications]]
54
4
==== Mail Notifications ====
55
5
@@ -411,3 +361,70 @@ To enable Discord notifications you need to create a webhook and set the appropr
411
361
| Text to send. SpEL-expressions are supported.
412
362
| `+++"*#{instance.registration.name}* (#{instance.id}) is *#{event.statusInfo.status}*"+++`
413
363
|===
364
+
365
+
366
+
[[notification-proxy]]
367
+
==== Notification Proxy Settings ====
368
+
All Notifiers which are using a `RestTemplate` can be configured to use a proxy.
369
+
370
+
.Notification Proxy configuration options
371
+
|===
372
+
| Property name |Description |Default value
373
+
374
+
| spring.boot.admin.notify.proxy.host
375
+
| The proxy host
376
+
|
377
+
378
+
| spring.boot.admin.notify.proxy.port
379
+
| The proxy port
380
+
|
381
+
|===
382
+
383
+
384
+
[[reminder-notifications]]
385
+
==== Notification Reminder ====
386
+
The `RemindingNotifier` sends reminders for down/offline applications, it delegates the sending of notifications to another notifier.
387
+
388
+
By default a reminder is triggered when a registered application changes to `DOWN` or `OFFLINE`. You can alter this behaviour via `setReminderStatuses()`. The reminder ends when either the status changes to a non-triggering status or the regarding application gets deregistered.
389
+
390
+
By default the reminders are sent every 10 minutes, to change this use `setReminderPeriod()`. The `RemindingNotifier` itself doesn't start the background thread to send the reminders, you need to take care of this as shown in the given example below;
<2> Schedules sending of due reminders every 10 seconds.
412
+
413
+
414
+
[[filtering-notifications]]
415
+
==== Filtering Notifications ====
416
+
The `FilteringNotifier` allows you to filter certain notification based on rules you can add/remove at runtime. It delegates the sending of notifications to another notifier.
417
+
418
+
If you add a `FilteringNotifier` to your `ApplicationContext` a RESTful interface on `notifications/filter` gets available.
419
+
420
+
This notifier is useful if you don't want receive notifications when deploying your applications. Before stopping the application you can add an (expiring) filter either via a `POST` request.
<1> Add the `FilteringNotifier` bean using a delegate (e.g. `MailNotifier` when configured)
428
+
<2> Add the `RemindingNotifier` as primary bean using the `FilteringNotifier` as delegate.
429
+
430
+
TIP: This example combines the reminding and filtering notifiers. This allows you to get notifications after the deployed application hasn't restarted in a certain amount of time (until the filter expires).
Copy file name to clipboardExpand all lines: spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerNotifierAutoConfiguration.java
Copy file name to clipboardExpand all lines: spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/HipchatNotifier.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public class HipchatNotifier extends AbstractStatusChangeNotifier {
47
47
privatestaticfinalStringDEFAULT_DESCRIPTION = "<strong>#{instance.registration.name}</strong>/#{instance.id} is <strong>#{event.statusInfo.status}</strong>";
Copy file name to clipboardExpand all lines: spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/MicrosoftTeamsNotifier.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public class MicrosoftTeamsNotifier extends AbstractStatusChangeNotifier {
0 commit comments