feat(alerting): began work on splitting scheduler into scheduler and engine

This commit is contained in:
Torkel Ödegaard
2016-06-06 11:56:58 +02:00
parent a191b9b1cf
commit 0cbf4ae773
8 changed files with 314 additions and 99 deletions

View 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)
}