graphicek/server/app/alerts.go

15 lines
190 B
Go
Raw Normal View History

2024-03-29 09:55:51 +01:00
package app
import "time"
func (s *Server) StartAlerts() {
ticker := time.NewTicker(time.Second * 10)
go func() {
for {
s.Services.Alerts.EvaluateAlerts()
<-ticker.C
}
}()
}