SlackConfiguration
Options & Configuration · AiDotNet.TrainingMonitoring.Notifications
Configuration for Slack notification service.
Constructors
| Constructor |
Summary |
SlackConfiguration() |
|
Properties
| Property |
Summary |
int TimeoutMs { get; set; } |
Gets or sets the request timeout in milliseconds. |
string BotToken { get; set; } |
Gets or sets the bot token (alternative to webhook). |
string Channel { get; set; } |
Gets or sets the channel to post to (required when using bot token). |
string IconEmoji { get; set; } |
Gets or sets the bot icon emoji. |
string Username { get; set; } |
Gets or sets the bot username. |
string WebhookUrl { get; set; } |
Gets or sets the webhook URL. |
Methods
| Method |
Summary |
SlackConfiguration ForBotToken(string botToken, string channel) |
Creates a configuration using a bot token. |
SlackConfiguration ForWebhook(string webhookUrl) |
Creates a configuration using a webhook URL. |
bool IsValid() |
Validates the configuration. |