|
1 | 1 | resource "azurerm_monitor_scheduled_query_rules_alert_v2" "failure_event" { |
2 | 2 | count = var.enable_alerting ? 1 : 0 |
3 | 3 |
|
4 | | - auto_mitigation_enabled = false |
5 | | - description = "An alert triggered by a custom event batch_marked_as_failed logged in code" |
6 | | - enabled = var.enable_alerting |
7 | | - evaluation_frequency = "PT5M" |
8 | | - location = var.region |
9 | | - name = "${var.app_short_name}-batch-failed-alert" |
10 | | - resource_group_name = azurerm_resource_group.main.name |
11 | | - scopes = [var.app_insights_id] |
12 | | - severity = 2 |
13 | | - skip_query_validation = false |
14 | | - target_resource_types = ["microsoft.insights/components"] |
15 | | - window_duration = "PT5M" |
16 | | - workspace_alerts_storage_enabled = false |
| 4 | + auto_mitigation_enabled = false |
| 5 | + description = "An alert triggered by a custom event batch_marked_as_failed logged in code" |
| 6 | + enabled = var.enable_alerting |
| 7 | + evaluation_frequency = "PT5M" |
| 8 | + location = var.region |
| 9 | + name = "${var.app_short_name}-batch-failed-alert" |
| 10 | + resource_group_name = azurerm_resource_group.main.name |
| 11 | + scopes = [var.app_insights_id] |
| 12 | + severity = 2 |
| 13 | + skip_query_validation = false |
| 14 | + target_resource_types = ["microsoft.insights/components"] |
| 15 | + window_duration = "PT5M" |
| 16 | + workspace_alerts_storage_enabled = false |
17 | 17 |
|
18 | 18 | action { |
19 | | - action_groups = [var.action_group_id] |
| 19 | + action_groups = [var.action_group_id] |
20 | 20 | } |
21 | 21 |
|
22 | 22 | criteria { |
|
0 commit comments