From b6eb74d4cfb927c5de553ef3ead0ab036c429a94 Mon Sep 17 00:00:00 2001 From: Justin Jung Date: Wed, 29 Nov 2023 22:17:50 -0800 Subject: [PATCH] Nit Signed-off-by: Justin Jung --- docs/configuration/config-file-reference.md | 4 ++-- pkg/util/validation/limits.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 49c244f87a..b5ab659830 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -5061,10 +5061,10 @@ otel: ### `QueryAttribute` ```yaml -# Regex that the query string should match. If not set, it won't be checked.' +# Regex that the query string should match. If not set, it won't be checked. [regex: | default = ""] -# Time window that the query should be within. If not set, it won't be checked.' +# Time window that the query should be within. If not set, it won't be checked. time_window: # Start of the time window that the query should be within. If set to 0, it # won't be checked. diff --git a/pkg/util/validation/limits.go b/pkg/util/validation/limits.go index 9531ee8555..a10e3f1f78 100644 --- a/pkg/util/validation/limits.go +++ b/pkg/util/validation/limits.go @@ -63,8 +63,8 @@ type PriorityDef struct { } type QueryAttribute struct { - Regex string `yaml:"regex" json:"regex" doc:"nocli|description=Regex that the query string should match. If not set, it won't be checked.'"` - TimeWindow TimeWindow `yaml:"time_window" json:"time_window" doc:"nocli|description=Time window that the query should be within. If not set, it won't be checked.'"` + Regex string `yaml:"regex" json:"regex" doc:"nocli|description=Regex that the query string should match. If not set, it won't be checked."` + TimeWindow TimeWindow `yaml:"time_window" json:"time_window" doc:"nocli|description=Time window that the query should be within. If not set, it won't be checked."` CompiledRegex *regexp.Regexp }