Skip to content

Commit

Permalink
Merge pull request #333 from PagerDuty/deprecate_webhook_field
Browse files Browse the repository at this point in the history
Add comment indicating IncidentDetails.Description is deprecated
  • Loading branch information
theckman committed Oct 9, 2021
2 parents 9326bd9 + eeb0801 commit 906d87d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ type IncidentDetails struct {
ResolveReason *string `json:"resolve_reason"`
AlertCounts AlertCounts `json:"alert_counts"`
Metadata interface{} `json:"metadata"`
Description string `json:"description"`
Alerts []IncidentAlert `json:"alerts,omitempty"`

// Description is deprecated, use Title instead.
Description string `json:"description"`
}

// WebhookPayloadMessages is the wrapper around the Webhook payloads. The Array may contain multiple message elements if webhook firing actions occurred in quick succession
Expand Down

0 comments on commit 906d87d

Please sign in to comment.