-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathno-envelopes-processed-alert.tf
74 lines (63 loc) · 2.75 KB
/
no-envelopes-processed-alert.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module "no-cft-envelopes-processed-alert" {
source = "[email protected]:hmcts/cnp-module-metric-alert"
location = var.location
app_insights_name = module.application_insights.name
enabled = var.env == "prod"
alert_name = "No_cft_envelopes_processed_-_Blob_Router"
alert_desc = "Triggers when Blob Router did not process single CFT envelope in last hour within SLA."
common_tags = var.common_tags
app_insights_query = <<EOF
traces
| where message startswith "No Envelopes created in CFT"
EOF
frequency_in_minutes = "60"
time_window_in_minutes = "60"
severity_level = "4"
action_group_name = module.alert-action-group.action_group_name
custom_email_subject = "Blob Router - No CFT envelopes processed"
trigger_threshold_operator = "GreaterThan"
trigger_threshold = "0"
resourcegroup_name = azurerm_resource_group.rg.name
}
module "no-crime-envelopes-processed-alert" {
source = "[email protected]:hmcts/cnp-module-metric-alert"
location = var.location
app_insights_name = module.application_insights.name
enabled = var.env == "prod"
alert_name = "No_crime_envelopes_processed_-_Blob_Router"
alert_desc = "Triggers when Blob Router did not process single Crime envelope in last hour within SLA."
common_tags = var.common_tags
app_insights_query = <<EOF
traces
| where message startswith "No Envelopes created in Crime"
EOF
frequency_in_minutes = "60"
time_window_in_minutes = "60"
severity_level = "4"
action_group_name = module.alert-action-group.action_group_name
custom_email_subject = "Blob Router - No Crime envelopes processed"
trigger_threshold_operator = "GreaterThan"
trigger_threshold = "0"
resourcegroup_name = azurerm_resource_group.rg.name
}
module "no-pcq-envelopes-processed-alert" {
source = "[email protected]:hmcts/cnp-module-metric-alert"
location = var.location
app_insights_name = module.application_insights.name
enabled = var.env == "prod"
alert_name = "No_pcq_envelopes_processed_-_Blob_Router"
alert_desc = "Triggers when Blob Router did not process single PCQ envelope in last hour within SLA."
common_tags = var.common_tags
app_insights_query = <<EOF
traces
| where message startswith "No Envelopes created in PCQ"
EOF
frequency_in_minutes = "60"
time_window_in_minutes = "60"
severity_level = "4"
action_group_name = module.alert-action-group.action_group_name
custom_email_subject = "Blob Router - No PCQ envelopes processed"
trigger_threshold_operator = "GreaterThan"
trigger_threshold = "0"
resourcegroup_name = azurerm_resource_group.rg.name
}