Skip to content

Commit 8722639

Browse files
author
Scott McAllister
authored
Merge pull request #204 from PagerDuty/event-v2-response
fixing eventV2Response to match API
2 parents a9778e0 + 4d1f3c1 commit 8722639

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

event_v2.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ type V2Payload struct {
3434

3535
// Response is the json response body for an event
3636
type V2EventResponse struct {
37-
RoutingKey string `json:"routing_key"`
38-
DedupKey string `json:"dedup_key"`
39-
EventAction string `json:"event_action"`
37+
Status string `json:"status,omitempty"`
38+
DedupKey string `json:"dedup_key,omitempty"`
39+
Message string `json:"message,omitempty"`
40+
Errors []string `json:"errors,omitempty"`
4041
}
4142

4243
const v2eventEndPoint = "https://events.pagerduty.com/v2/enqueue"

0 commit comments

Comments
 (0)