interfaces.go 222 B

123456789101112
  1. package alerting
  2. import "time"
  3. type Executor interface {
  4. Execute(rule *AlertJob, resultChan chan *AlertResult)
  5. }
  6. type Scheduler interface {
  7. Tick(time time.Time, execQueue chan *AlertJob)
  8. Update(rules []*AlertRule)
  9. }