Documentation ¶
Index ¶
- Constants
- func CreateNotification(notificationInfo *api.Info, notificationMessage, zhNotificationMessage string)
- func GetBackupMessage(notificationType, namespace, backupName, status, startTime, reason string) string
- func GetCockroachMessage(errMessage, cockroachType string) string
- func GetNSOwner(namespace string) (string, error)
- func GetNotificationMessage(notificationInfo *api.Info) string
- func GetPhoneNumberByNS(owner string) (string, error)
- func GetQuotaMessage(nsQuota *api.NameSpaceQuota) string
- func InitFeishuClient()
- func SendFeishuNotification(notification *api.Info, message string) error
- func SendToSms(notificationInfo *api.Info, clusterName, content string) error
Constants ¶
View Source
const ExceptionType = "exception"
Variables ¶
This section is empty.
Functions ¶
func CreateNotification ¶
func GetBackupMessage ¶
func GetCockroachMessage ¶
func GetNSOwner ¶
func GetNotificationMessage ¶
func GetPhoneNumberByNS ¶
func GetQuotaMessage ¶
func GetQuotaMessage(nsQuota *api.NameSpaceQuota) string
func InitFeishuClient ¶
func InitFeishuClient()
func SendFeishuNotification ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.