mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): testing alert is starting to work
This commit is contained in:
@@ -23,6 +23,14 @@ type AlertRule struct {
|
||||
Notifications []int64
|
||||
}
|
||||
|
||||
type AlertValidationError struct {
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (e AlertValidationError) Error() string {
|
||||
return e.Reason
|
||||
}
|
||||
|
||||
var (
|
||||
ValueFormatRegex = regexp.MustCompile("^\\d+")
|
||||
UnitFormatRegex = regexp.MustCompile("\\w{1}$")
|
||||
|
||||
Reference in New Issue
Block a user