From 2a72f3513819839ebe41bac16be009f6e1b6f1c5 Mon Sep 17 00:00:00 2001 From: Rain Date: Fri, 10 Apr 2020 14:48:53 +0800 Subject: [PATCH] feat(notify): Add TNotifyChannel 'feishu' --- pkg/cloudcommon/notifyclient/notify.go | 3 +++ pkg/mcclient/modules/notify/consts.go | 1 + 2 files changed, 4 insertions(+) diff --git a/pkg/cloudcommon/notifyclient/notify.go b/pkg/cloudcommon/notifyclient/notify.go index 27f253813f..e29625ca4f 100644 --- a/pkg/cloudcommon/notifyclient/notify.go +++ b/pkg/cloudcommon/notifyclient/notify.go @@ -141,6 +141,7 @@ func NotifyNormal(recipientId []string, isGroup bool, event string, data jsonuti notify.NotifyByEmail, notify.NotifyByDingTalk, notify.NotifyByWebConsole, + notify.NotifyByFeishu, } { RawNotify(recipientId, isGroup, c, @@ -155,6 +156,7 @@ func NotifyImportant(recipientId []string, isGroup bool, event string, data json notify.NotifyByDingTalk, notify.NotifyByMobile, notify.NotifyByWebConsole, + notify.NotifyByFeishu, } { RawNotify(recipientId, isGroup, c, @@ -169,6 +171,7 @@ func NotifyCritical(recipientId []string, isGroup bool, event string, data jsonu notify.NotifyByDingTalk, notify.NotifyByMobile, notify.NotifyByWebConsole, + notify.NotifyByFeishu, } { RawNotify(recipientId, isGroup, c, diff --git a/pkg/mcclient/modules/notify/consts.go b/pkg/mcclient/modules/notify/consts.go index 6ca0bcfa97..e973c926e8 100644 --- a/pkg/mcclient/modules/notify/consts.go +++ b/pkg/mcclient/modules/notify/consts.go @@ -27,4 +27,5 @@ const ( NotifyByMobile = TNotifyChannel("mobile") NotifyByDingTalk = TNotifyChannel("dingtalk") NotifyByWebConsole = TNotifyChannel("webconsole") + NotifyByFeishu = TNotifyChannel("feishu") )