MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ProcessAlertRule

Function ProcessAlertRule

agent/utils/alert/alert.go:177–184  ·  view source on GitHub ↗
(alert dto.AlertDTO)

Source from the content-addressed store, hash-verified

175}
176
177func ProcessAlertRule(alert dto.AlertDTO) string {
178 marshal, err := json.Marshal(alert)
179 if err != nil {
180 global.LOG.Errorf("error processing alert rule, err: %v", err)
181 return ""
182 }
183 return string(marshal)
184}
185
186func GetCronJobType(alertType string) string {
187 for _, at := range cronJobAlertTypes {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected