notification

package
v0.0.0-...-bfbff3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ExceptionType = "exception"

Variables

This section is empty.

Functions

func CreateNotification

func CreateNotification(notificationInfo *api.Info, notificationMessage, zhNotificationMessage string)

func GetBackupMessage

func GetBackupMessage(notificationType, namespace, backupName, status, startTime, reason string) string

func GetCockroachMessage

func GetCockroachMessage(errMessage, cockroachType string) string

func GetNSOwner

func GetNSOwner(namespace string) (string, error)

func GetNotificationMessage

func GetNotificationMessage(notificationInfo *api.Info) string

func GetPhoneNumberByNS

func GetPhoneNumberByNS(owner string) (string, error)

func GetQuotaMessage

func GetQuotaMessage(nsQuota *api.NameSpaceQuota) string

func InitFeishuClient

func InitFeishuClient()

func SendFeishuNotification

func SendFeishuNotification(notification *api.Info, message string) error

func SendToSms

func SendToSms(notificationInfo *api.Info, clusterName, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL