app/vmalert/config: add missing docs for ValidateTplFn

This commit is contained in:
Aliaksandr Valialkin 2022-07-25 09:22:09 +03:00
parent 92630c1ab4
commit 2e0b6d680e
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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