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

Function handleAlert

agent/app/service/clam.go:495–507  ·  view source on GitHub ↗
(infectedFiles, clamName string, clamId uint)

Source from the content-addressed store, hash-verified

493}
494
495func handleAlert(infectedFiles, clamName string, clamId uint) {
496 itemInfected, _ := strconv.Atoi(strings.TrimSpace(infectedFiles))
497 if itemInfected <= 0 {
498 return
499 }
500 pushAlert := dto.PushAlert{
501 TaskName: clamName,
502 AlertType: "clams",
503 EntryID: clamId,
504 Param: strconv.Itoa(itemInfected),
505 }
506 _ = alert_push.PushAlert(pushAlert)
507}

Callers 1

HandleOnceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected