Documentation ¶
Index ¶
- Constants
- func CreateNotification(namespace, name, status, notificationMessage, zhNotificationMessage string)
- func GetBackupMessage(notificationType, namespace, backupName, status, startTime, reason string) string
- func GetNSOwner(namespace string) (string, error)
- func GetNotificationMessage(notificationInfo Info) string
- func GetPhoneNumberByNS(owner string) (string, error)
- func GetQuotaMessage(nsQuota *NameSpaceQuota) string
- func InitFeishuClient()
- func SendFeishuNotification(notification Info, message, feishuWebHook string) error
- func SendToSms(namespace, databaseName, clusterName, content string) error
- type Info
- type NameSpaceQuota
Constants ¶
View Source
const ExceptionType = "exception"
Variables ¶
This section is empty.
Functions ¶
func CreateNotification ¶
func CreateNotification(namespace, name, status, notificationMessage, zhNotificationMessage string)
func GetBackupMessage ¶
func GetNSOwner ¶
func GetNotificationMessage ¶
func GetPhoneNumberByNS ¶
func GetQuotaMessage ¶
func GetQuotaMessage(nsQuota *NameSpaceQuota) string
func InitFeishuClient ¶
func InitFeishuClient()
func SendFeishuNotification ¶
Types ¶
type NameSpaceQuota ¶
type NameSpaceQuota struct { NameSpace string CPULimit string MemLimit string GPULimit string EphemeralStorageLimit string ObjectStorageLimit string NodePortLimit string StorageLimit string CPUUsage string MemUsage string GPUUsage string EphemeralStorageUsage string ObjectStorageUsage string NodePortUsage string StorageUsage string }
Click to show internal directories.
Click to hide internal directories.