mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): began work on splitting scheduler into scheduler and engine
This commit is contained in:
12
pkg/services/alerting/interfaces.go
Normal file
12
pkg/services/alerting/interfaces.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user