From af361e5eaf2638918af0ab5d89ee8c88d166b5c6 Mon Sep 17 00:00:00 2001 From: Adam Boutcher Date: Tue, 14 Sep 2021 12:46:32 +0100 Subject: [PATCH] Mattermost JSON Updates --- notifiers/mattermost.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifiers/mattermost.go b/notifiers/mattermost.go index d7960168..5829cbe9 100644 --- a/notifiers/mattermost.go +++ b/notifiers/mattermost.go @@ -36,8 +36,8 @@ var mattermoster = &mattermost{¬ifications.Notification{ AuthorUrl: "https://github.com/adamboutcher", Delay: time.Duration(10 * time.Second), Icon: "far fa-comments", - SuccessData: null.NewNullString(`{"text": "The service {{.Service.Name}} is back online."}`), - FailureData: null.NewNullString(`{"text": "The service {{.Service.Name}} has gone offline."}`), + SuccessData: null.NewNullString(`{"icon_emoji":":white_check_mark:", "text": "The service {{.Service.Name}} is back online."}`), + FailureData: null.NewNullString(`{"icon_emoji":":x:", "text": "The service {{.Service.Name}} has gone offline."}`), DataType: "json", RequestInfo: "Mattermost allows you to customize your own messages with many complex components.", Limits: 60,