resource "datadog_monitor" "keyvault_status" { count = var.status_enabled == "true" ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Key Vault is down" message = coalesce(var.status_message, var.message) type = "query alert" query = < ${var.api_latency_threshold_critical} EOQ thresholds = { critical = var.api_latency_threshold_critical warning = var.api_latency_threshold_warning } evaluation_delay = var.evaluation_delay new_host_delay = var.new_host_delay notify_no_data = false renotify_interval = 0 notify_audit = false timeout_h = 0 include_tags = true locked = false require_full_window = false tags = concat(["env:${var.environment}", "type:cloud", "provider:azure", "resource:keyvault", "team:claranet", "created-by:terraform"], var.api_latency_extra_tags) lifecycle { ignore_changes = [silenced] } }