diff --git a/app/vmalert/config/config.go b/app/vmalert/config/config.go index 4bab5a4e92..c97dbd99af 100644 --- a/app/vmalert/config/config.go +++ b/app/vmalert/config/config.go @@ -168,6 +168,7 @@ func (r *Rule) Validate() error { return checkOverflow(r.XXX, "rule") } +// ValidateTplFn must validate the given annotations type ValidateTplFn func(annotations map[string]string) error // Parse parses rule configs from given file patterns