Skip to content

Commit

Permalink
Merge pull request #323 from PagerDuty/manage_incident_ep
Browse files Browse the repository at this point in the history
Add ability to set Escalation Policy when managing incidents
  • Loading branch information
Scott McAllister committed Apr 21, 2021
2 parents c3b74f5 + 5500812 commit b9e9a64
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions incident.go
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 b9e9a64

Please sign in to comment.