From 34414720521b5823babaa022e43e1b20a2763503 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 2 Oct 2018 14:57:04 +0200 Subject: [PATCH] MON-301 add support for excluding on event alert --- common/filter-tags/outputs.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/filter-tags/outputs.tf b/common/filter-tags/outputs.tf index 15a660a..b1b8b5a 100644 --- a/common/filter-tags/outputs.tf +++ b/common/filter-tags/outputs.tf @@ -5,6 +5,10 @@ output "query_alert" { output "service_check" { description = "The full filtering pattern including braces for query alert monitor type" - #value = "over.(\"${replace(local.including, ",", "\",\"")}\").exclude(\"${replace(local.excluding, ",", "\",\"")}\")" value = ".over(\"${replace(local.including, ",", "\",\"")}\")${local.excluding == "" ? "" : ".exclude(\"${replace(local.excluding, ",", "\",\"")}\")"}" } + +output "event_alert" { + description = "The full filtering pattern for event alert monitor type" + value = "tags:${replace(local.including, "aaa", "aaaa")}${local.excluding == "" ? "" : " excluded_tags:${replace(local.excluding, "aa", "aaaa")}"}" +}