From 7c9d5e0ea76917fa377aadbc71b0d68b8b361a1c Mon Sep 17 00:00:00 2001 From: ArtiomMatiom Date: Mon, 2 Dec 2024 16:31:17 +0100 Subject: [PATCH] format --- modules/azure/monitoring_metric_alert/main.tf | 4 ++-- modules/azure/monitoring_metric_alert/variables.tf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/azure/monitoring_metric_alert/main.tf b/modules/azure/monitoring_metric_alert/main.tf index 691d2fa..e7facbc 100644 --- a/modules/azure/monitoring_metric_alert/main.tf +++ b/modules/azure/monitoring_metric_alert/main.tf @@ -26,9 +26,9 @@ resource "azurerm_monitor_metric_alert" "metric_alert" { description = each.value.description severity = each.value.severity enabled = each.value.enabled - frequency = each.value.frequency + frequency = each.value.frequency window_size = each.value.window_size - + criteria { metric_namespace = each.value.metric_namespace metric_name = each.value.metric_name diff --git a/modules/azure/monitoring_metric_alert/variables.tf b/modules/azure/monitoring_metric_alert/variables.tf index 2a7b4b0..9675a37 100644 --- a/modules/azure/monitoring_metric_alert/variables.tf +++ b/modules/azure/monitoring_metric_alert/variables.tf @@ -24,10 +24,10 @@ variable "monitoring_rules" { auto_mitigation_enabled = optional(bool) severity = optional(number) enabled = optional(bool) - dimension = optional(object({ - name = string, + dimension = optional(object({ + name = string, operator = string, - values = list(string) + values = list(string) })) })) description = "A list of metricts we want to monitor. For details see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_metric_alert#argument-reference"