Teams
The Teams notifier adds support to route messages to Teams using Incoming Webhooks With Workflows.
Creating a Teams Incoming Webhook
Follow the instructions on the Microsoft website to create an Incoming Webhook.
info
The Teams notifier currently does not support authentication. When asked "Who can trigger the flow?" you should answer "Anyone".
Dependency
- build.gradle.kts
- build.gradle
- pom.xml
dependencies {
testImplementation("nl.vanwollingen.alerticorn:alerticorn-teams-workflow-notifier:0.1") //To use Teams
}
dependencies {
testImplementation 'nl.vanwollingen.alerticorn:alerticorn-teams-workflow-notifier:0.1'
}
<dependency>
<groupId>nl.vanwollingen.alerticorn</groupId>
<artifactId>alerticorn-teams-workflow-notifier</artifactId>
<version>0.1</version>
<scope>test</scope>
</dependency>
Shorthand Annotation
@Teams
can be used as a shorthand for @Message.Platform("Teams")
Example of using @Teams
@Teams
@Message(title = "This would go to Teams")
@Test
fun test() {
//...
}
Configuration
Configure environment variables with AC_TEAMS_CHANNEL_<your channel name>
to hold the channel webhooks.