Microsoft Teams integration
If you're using Teams you can use the CommerceMind.Nexus.Teams
NuGet package to get realtime updates when jobs and queues are failing. The package contains a IHealthCheckPublisher
implementation that publishes health check failures to Teams.
The package sends notifications using the webhook connector type, which means that your application doesn't need to be exposed to the Internet.
Installation
The first thing you need to do is to select the channel you want the notifications to come to. Click the three little dots for the channel and click Manage channel. Then click on the Edit button under Connectors.
Search for "Incoming Webhook" and click Add. Give it a name and an optional logo/profile image. Click create and after that you'll receive a url for the webhook. Copy this since you need to use it in your Nexus configuration.
When you've created your Teams webhook connector you can install the NuGet package CommerceMind.Nexus.Teams
. After that you add this to your Nexus registration in Program.cs
:
builder.Services
.AddNexus()
.AddTeamsPublisher(options =>
{
// Change to the url you got when you created your webhook
options.WebhookUrl = "https://someorg.webhook.office.com/webhookb2/....";
// This is optional and used to add link buttons to the messages to open the Nexus UI
options.AdminUIUrl = "https://commerce-mind-nexus.azurewebsites.net/admin/";
});