Added hangouts chat notification support

This commit is contained in:
Ernesto Serrano 2019-09-09 13:56:17 +02:00
parent f317f9fbc8
commit d75f3e018c
4 changed files with 109 additions and 1 deletions

View file

@ -109,7 +109,7 @@ func RegisterNotificationFlags(rootCmd *cobra.Command) {
"notifications",
"n",
viper.GetStringSlice("WATCHTOWER_NOTIFICATIONS"),
" notification types to send (valid: email, slack, msteams, gotify)")
" notification types to send (valid: email, slack, msteams, gotify, hangouts)")
flags.StringP(
"notifications-level",
@ -220,6 +220,12 @@ Should only be used for testing.
"",
viper.GetString("WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN"),
"The Gotify Application required to query the Gotify API")
flags.StringP(
"notification-hangouts-url",
"",
viper.GetString("WATCHTOWER_NOTIFICATION_HANGOUTS_CHAT_WEBHOOK_URL"),
"The Hangouts Chat Webhook Channel URL to send notifications to")
}
// SetDefaults provides default values for environment variables