We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ca93e5 + a0f8b48 commit eb61b49Copy full SHA for eb61b49
escalation_policy.go
@@ -42,6 +42,7 @@ type Escalation struct {
42
Important *bool `json:"important"`
43
NotifyIfTimeFrom *string `json:"notify_if_time_from"`
44
NotifyIfTimeTo *string `json:"notify_if_time_to"`
45
+ Severity *string `json:"severity"`
46
}
47
48
// Empty struct is here in case we want to add request params to ListEscalations.
@@ -107,6 +108,7 @@ type CreateEscalationOptions struct {
107
108
Important *bool `json:"important,omitempty"`
109
NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"`
110
NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"`
111
+ Severity string `json:"severity,omitempty"`
112
113
114
// CreateEscalation creates an escalation
@@ -145,6 +147,7 @@ type UpdateEscalationOptions struct {
145
147
146
148
149
150
151
152
153
// UpdateEscalation updates an escalation with new templates and/or name. At least one field in template is required
on_call_shift.go
@@ -34,6 +34,7 @@ type OnCallShift struct {
34
Level int `json:"level"`
35
Start string `json:"start"`
36
Duration int `json:"duration"`
37
+ Until *string `json:"until"`
38
Frequency *string `json:"frequency"`
39
Users *[]string `json:"users"`
40
Interval *int `json:"interval"`
@@ -102,6 +103,7 @@ type CreateOnCallShiftOptions struct {
102
103
Level *int `json:"level,omitempty"`
104
105
106
@@ -143,6 +145,7 @@ type UpdateOnCallShiftOptions struct {
143
144
on_call_shift_test.go
@@ -19,6 +19,7 @@ var testOnCallShift = &OnCallShift{
19
Name: "Test On-Call Shift",
20
Type: "recurrent_event",
21
Start: "2020-09-04T13:00:00",
22
+ Until: "2020-09-05T13:00:00",
23
Level: 0,
24
Duration: 7200,
25
Frequency: &frequency,
@@ -35,6 +36,7 @@ var testOnCallShiftBody = `{
"schedule_id" : "SBM7DV7BKFUYU",
"type" : "recurrent_event",
"start" : "2020-09-04T13:00:00",
+ "until" : "2020-09-05T13:00:00",
"level" : 0,
41
"duration" : 7200,
"frequency" : "weekly",
0 commit comments