Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertHandle ¶
func AlertHandle(buffer bytes.Buffer, alertName string) *model.LarkRequest
AlertHandle 告警处理
func PersistenceHandle ¶
func PersistenceHandle(notification model.Notification)
Types ¶
type AlertTemplate ¶
type AlertTemplate struct { AlertName string AlertStatus string AlertLevel string Env string NameSpace string Job string Pod string Expr string Summary string Description string StartsAt time.Time }
func (*AlertTemplate) BuildingAlertTemplate ¶
func (a *AlertTemplate) BuildingAlertTemplate(notification model.Notification) ([]*model.LarkRequest, error)
BuildingAlertTemplate 构建告警模板
Click to show internal directories.
Click to hide internal directories.