Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MergeIncidents (using APIObject)
Allows for merging of incidents as follows: incidents := make([]string, 3) incidents[0] = "PXXXXXX" incidents[1] = "PYYYYYY" incidents[2] = "PZZZZZZ" first := incidents[0] rest := incidents[1:] tomerge := make([]pagerduty.APIObject, 0) for i := range rest { inc := pagerduty.APIObject{ ID: rest[i], Type: "incident_reference", } tomerge = append(tomerge, inc) } result := client.MergeIncidents(email, first, tomerge)
- Loading branch information