-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice_incident_rule.tf
38 lines (32 loc) · 941 Bytes
/
service_incident_rule.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
module "service_incident_rule" {
source = "../../modules/service_incident_rule"
# Services are Opsgenie Enterprise feature, disable it for now
enabled = false
service_incident_rule = {
service_id = module.service.service_id
incident_rule = {
condition_match_type = "match-all"
conditions = [
{
# Possibke values: message, description, tags, extra-properties, recipients, teams, priority
field = "message"
operation = "matches"
expected_value = ".*stage.*"
},
{
field = "tags"
operation = "contains"
expected_value = "severity:info"
}
]
incident_properties = {
message = "This is a test message"
priority = "P3"
stakeholder_properties = {
message = "Message for stakeholders"
enable = true
}
}
}
}
}