Microsoft Teams Notifications
To enable Microsoft Teams notifications, you need to set up a connector webhook url and set the appropriate configuration property.
STATUS_CHANGED eventMessage format
Notifications are sent as Adaptive Cards. The card body is composed of the title, the instance name, the text and a FactSet containing the instance's status and URLs.
SpEL expression context
The expression-based properties are parsed as SpEL template expressions (#{ ... }). The following root variables are available:
| Variable | Type | Description |
|---|---|---|
event | InstanceEvent | The event that triggered the notification. Frequently used property: type (one of REGISTERED, DEREGISTERED, STATUS_CHANGED, REGISTRATION_UPDATED, INFO_CHANGED, ENDPOINTS_DETECTED). For STATUS_CHANGED events event.statusInfo.status holds the new status. |
instance | Instance | The full instance aggregate. Frequently used paths: instance.id (e.g. "TestAppId"), instance.registration.name (e.g. "Test App"), instance.statusInfo.status (one of UP, DOWN, OFFLINE, RESTRICTED, OUT_OF_SERVICE, UNKNOWN). |
lastStatus | String | The previous status code of the instance (e.g. UP, DOWN, UNKNOWN), useful for building messages like from #{lastStatus} to #{event.statusInfo.status}. |
| Property |
|---|
spring.boot.admin.notify.ms-teams.enabledEnables the notification.
|
spring.boot.admin.notify.ms-teams.webhook-urlWebhook url for Microsoft Teams Channel Webhook connector (i.e. ...{webhook-id})
|
spring.boot.admin.notify.ms-teams.ignore-changesList of changes to ignore. Must be in Format OLD:NEW, for any status use * as wildcard, e.g. *:UP or OFFLINE:*
|
spring.boot.admin.notify.ms-teams.registered-titleTitle of the Teams message when an app registers
|
spring.boot.admin.notify.ms-teams.deregistered-titleTitle of the Teams message when an app deregisters
|
spring.boot.admin.notify.ms-teams.status-changed-titleTitle of the Teams message when an app changes status
|
spring.boot.admin.notify.ms-teams.title-color-expressionExpression for the color of the message title, see supported colors
|
spring.boot.admin.notify.ms-teams.registered-text-expressionExpression for the text that will be displayed when an app registers
|
spring.boot.admin.notify.ms-teams.deregistered-text-expressionExpression for the text that will be displayed when an app deregisters.
|
spring.boot.admin.notify.ms-teams.status-changed-text-expressionExpression for the text that will be displayed when an app changes status
|