support route notifications to specified users (#5206)

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
This commit is contained in:
wanjunlei
2022-10-11 17:36:27 +08:00
committed by GitHub
parent 3810db2879
commit 08b8069647

View File

@@ -20,11 +20,18 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type Channel struct {
Tenant string `json:"tenant"`
// Receiver type, known values are dingtalk, email, feishu, slack, sms, pushover, webhook, wechat.
Type []string `json:"type,omitempty"`
}
type ReceiverSelector struct {
Name []string `json:"name,omitempty"`
RegexName string `json:"regexName,omitempty"`
Selector *metav1.LabelSelector `json:"selector,omitempty"`
// Receiver type, known values are dingtalk, email, slack, sms, pushover, webhook, wechat.
Channels []Channel `json:"channels,omitempty"`
// Receiver type, known values are dingtalk, email, feishu, slack, sms, pushover, webhook, wechat.
Type string `json:"type,omitempty"`
}