Skip to content

Commit a0f8b48

Browse files
authored
Merge pull request #23 from grafana/matiasb/escalation-policy-severity
Add `severity` escalation option
2 parents fab8d66 + 7a86c28 commit a0f8b48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

escalation_policy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type Escalation struct {
4242
Important *bool `json:"important"`
4343
NotifyIfTimeFrom *string `json:"notify_if_time_from"`
4444
NotifyIfTimeTo *string `json:"notify_if_time_to"`
45+
Severity *string `json:"severity"`
4546
}
4647

4748
// Empty struct is here in case we want to add request params to ListEscalations.
@@ -107,6 +108,7 @@ type CreateEscalationOptions struct {
107108
Important *bool `json:"important,omitempty"`
108109
NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"`
109110
NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"`
111+
Severity string `json:"severity,omitempty"`
110112
}
111113

112114
// CreateEscalation creates an escalation
@@ -145,6 +147,7 @@ type UpdateEscalationOptions struct {
145147
Important *bool `json:"important,omitempty"`
146148
NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"`
147149
NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"`
150+
Severity string `json:"severity,omitempty"`
148151
}
149152

150153
// UpdateEscalation updates an escalation with new templates and/or name. At least one field in template is required

0 commit comments

Comments
 (0)