mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
29 lines
434 B
Go
29 lines
434 B
Go
package alerting
|
|
|
|
import "time"
|
|
|
|
type AlertingHandler interface {
|
|
Execute(rule *AlertJob, resultChan chan *AlertResult)
|
|
}
|
|
|
|
type Scheduler interface {
|
|
Tick(time time.Time, execQueue chan *AlertJob)
|
|
Update(rules []*AlertRule)
|
|
}
|
|
|
|
type Notifier interface {
|
|
Notify(alertResult *AlertResult)
|
|
}
|
|
|
|
type AlertCondition interface {
|
|
Eval()
|
|
}
|
|
|
|
type QueryReducer interface {
|
|
Reduce() float64
|
|
}
|
|
|
|
type AlertEvaluator interface {
|
|
Eval() bool
|
|
}
|