mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
13 lines
222 B
Go
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)
|
|
}
|