-
Notifications
You must be signed in to change notification settings - Fork 0
/
escalation_policy.tf
45 lines (42 loc) · 1.13 KB
/
escalation_policy.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
resource "pagerduty_escalation_policy" "helpdesk" {
name = "Page the Helpdesk"
num_loops = 1
rule {
escalation_delay_in_minutes = 30
target {
type = "schedule_reference"
id = pagerduty_schedule.HelpDesk_Day_Shift.id
}
target {
type = "schedule_reference"
id = pagerduty_schedule.HelpDesk_Night_Shift.id
}
}
#if the helpdesk doesn't answer fred gets paged
rule {
escalation_delay_in_minutes = 1 #fred doesn't get very long to respond, fred is a machine
target {
type = "schedule_reference"
id = pagerduty_schedule.sucks_to_be_fred.id #it really sucks to be fred
}
}
}
resource "pagerduty_escalation_policy" "IT" {
name = "Page IT"
num_loops = 1
rule {
escalation_delay_in_minutes = 30
target {
type = "schedule_reference"
id = pagerduty_schedule.IT.id
}
}
#if the helpdesk doesn't answer fred gets paged
rule {
escalation_delay_in_minutes = 1 #fred doesn't get very long to respond, fred is a machine
target {
type = "schedule_reference"
id = pagerduty_schedule.sucks_to_be_fred.id #it really sucks to be fred
}
}
}