mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
26 lines
381 B
Go
26 lines
381 B
Go
package alerting
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type EvalHandler interface {
|
|
Eval(context *EvalContext)
|
|
}
|
|
|
|
type Scheduler interface {
|
|
Tick(time time.Time, execQueue chan *Job)
|
|
Update(rules []*Rule)
|
|
}
|
|
|
|
type Notifier interface {
|
|
Notify(alertResult *EvalContext)
|
|
GetType() string
|
|
NeedsImage() bool
|
|
PassesFilter(rule *Rule) bool
|
|
}
|
|
|
|
type Condition interface {
|
|
Eval(result *EvalContext)
|
|
}
|