mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
16 lines
262 B
Go
16 lines
262 B
Go
package alerting
|
|
|
|
import "github.com/grafana/grafana/pkg/models"
|
|
|
|
type validatorSeverity int
|
|
|
|
const (
|
|
alertWarning validatorSeverity = iota
|
|
alertError
|
|
)
|
|
|
|
type alertValidator struct {
|
|
aFunc func(*models.Alert) (bool, string)
|
|
aSeverity validatorSeverity
|
|
}
|