grafana/pkg/services/alerting/interfaces.go
2016-06-15 11:49:20 +02:00

13 lines
229 B
Go

package alerting
import "time"
type AlertingHandler interface {
Execute(rule *AlertJob, resultChan chan *AlertResult)
}
type Scheduler interface {
Tick(time time.Time, execQueue chan *AlertJob)
Update(rules []*AlertRule)
}