grafana/pkg/services/alerting/interfaces.go
2016-09-13 15:09:55 +02:00

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)
}