From 5d62f5a324a7aa24512980236bc43898ceacba48 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 25 Jul 2022 09:22:09 +0300 Subject: [PATCH] app/vmalert/config: add missing docs for ValidateTplFn --- app/vmalert/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmalert/config/config.go b/app/vmalert/config/config.go index 4bab5a4e9..c97dbd99a 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