Skip to content

Commit

Permalink
Add ability to set Escalation Policy when managing incidents
Browse files Browse the repository at this point in the history
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
  • Loading branch information
theckman committed Apr 20, 2021
1 parent 4c4849d commit 5500812
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5500812

Please sign in to comment.