handle

package
v0.0.0-...-847f540 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 12 Imported by: 0

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 构建告警模板

Jump to

Keyboard shortcuts

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