From 55008127d1f9eba7dd22f44fcb2136abf83979b2 Mon Sep 17 00:00:00 2001 From: Tim Heckman Date: Tue, 20 Apr 2021 01:15:05 -0700 Subject: [PATCH] Add ability to set Escalation Policy when managing incidents This was originally suggested by @evnsio in #273, but there were some challenges getting that PR shephered through and so this is being reintroduced as a new PR. Replaces #273 --- incident.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/incident.go b/incident.go index f04104f0..418f9d4f 100644 --- a/incident.go +++ b/incident.go @@ -166,12 +166,13 @@ type CreateIncidentOptions struct { // ManageIncidentsOptions is the structure used when PUTing updates to incidents to the ManageIncidents func type ManageIncidentsOptions struct { - ID string `json:"id"` - Type string `json:"type"` - Status string `json:"status,omitempty"` - Priority *APIReference `json:"priority,omitempty"` - Assignments []Assignee `json:"assignments,omitempty"` - Resolution string `json:"resolution,omitempty"` + ID string `json:"id"` + Type string `json:"type"` + Status string `json:"status,omitempty"` + Priority *APIReference `json:"priority,omitempty"` + Assignments []Assignee `json:"assignments,omitempty"` + EscalationPolicy *APIReference `json:"escalation_policy,omitempty"` + Resolution string `json:"resolution,omitempty"` } // MergeIncidentsOptions is the structure used when merging incidents with MergeIncidents func