File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ resource "azurerm_monitor_activity_log_alert" "monitor_activity_log_alert_service_health" {
2+ name = " ${ local . prefix } -alert-servicehealth"
3+ resource_group_name = azurerm_resource_group. logging_rg . name
4+ tags = var. tags
5+
6+ enabled = true
7+ description = " Alerts for service health and maintenance events."
8+ scopes = [
9+ data . azurerm_subscription . current . id
10+ ]
11+ action {
12+ action_group_id = azurerm_monitor_action_group. monitor_action_group . id
13+ webhook_properties = {
14+ " alert_custom_type" = " service-health" ,
15+ " alert_custom_location" = var.location
16+ " alert_custom_env" = var.environment
17+ " alert_custom_sub" = data.azurerm_client_config.current.subscription_id
18+ " alert_custom_resource_group" = azurerm_resource_group.extension_rg.name
19+ " alert_custom_instance" = var.prefix
20+ " alert_custom_layer" = " core"
21+ " alert_custom_layer_name" = " core"
22+ " alert_custom_snowseverity" = " Info"
23+ " alert_custom_snowfgroup" = " A.TEC.GLOB.ADP.DL.3RD"
24+ " alert_custom_snowincidentlevel" = " P3"
25+ }
26+ }
27+ criteria {
28+ category = " ServiceHealth"
29+ service_health {
30+ events = [
31+ " Incident" ,
32+ " Maintenance"
33+ ]
34+ locations = [
35+ " Global" ,
36+ data . azurerm_location . current . display_name
37+ ]
38+ }
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments