grafana/pkg/services/alerting/interfaces.go
2016-06-06 14:24:14 +02:00

13 lines
222 B
Go

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