From 7abf415f5cf6ac74cd0fefe2a2d521ec6c69411f Mon Sep 17 00:00:00 2001 From: jcrichlake Date: Wed, 6 Nov 2024 11:10:59 -0500 Subject: [PATCH] Fixing scope --- operations/template/alert.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operations/template/alert.tf b/operations/template/alert.tf index e3436325b..9e666a340 100644 --- a/operations/template/alert.tf +++ b/operations/template/alert.tf @@ -520,7 +520,7 @@ resource "azurerm_monitor_metric_alert" "api-response-time-alert" { count = local.non_pr_environment ? 1 : 0 name = "cdcti-${var.environment}-api-response-time-alert" resource_group_name = data.azurerm_resource_group.group.name - scopes = [azurerm_service_plan.plan.id] + scopes = [azurerm_linux_web_app.api.id] description = "Alerts when the average API response time across the service plan is high" severity = 2 frequency = "PT1M"