feat(alerting): testing alert is starting to work

This commit is contained in:
Torkel Ödegaard
2016-07-21 13:09:12 +02:00
parent 9e91aacd34
commit f6a160b270
14 changed files with 104 additions and 70 deletions

View File

@@ -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}$")