interfaces.go 292 B

12345678910111213141516
  1. package alerting
  2. import "time"
  3. type AlertingHandler 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. }
  10. type Notifier interface {
  11. Notify(alertResult *AlertResult)
  12. }