From 7a86c28fbf4383e5eb46a91dcaf56bca2b1427db Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Mon, 7 Oct 2024 11:19:17 -0300 Subject: [PATCH] Add `severity` escalation option --- escalation_policy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/escalation_policy.go b/escalation_policy.go index d648c64..b366b18 100644 --- a/escalation_policy.go +++ b/escalation_policy.go @@ -42,6 +42,7 @@ type Escalation struct { Important *bool `json:"important"` NotifyIfTimeFrom *string `json:"notify_if_time_from"` NotifyIfTimeTo *string `json:"notify_if_time_to"` + Severity *string `json:"severity"` } // Empty struct is here in case we want to add request params to ListEscalations. @@ -107,6 +108,7 @@ type CreateEscalationOptions struct { Important *bool `json:"important,omitempty"` NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"` NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"` + Severity string `json:"severity,omitempty"` } // CreateEscalation creates an escalation @@ -145,6 +147,7 @@ type UpdateEscalationOptions struct { Important *bool `json:"important,omitempty"` NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"` NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"` + Severity string `json:"severity,omitempty"` } // UpdateEscalation updates an escalation with new templates and/or name. At least one field in template is required