From eeb08019798d9e4f85232838ff5f485a65080a64 Mon Sep 17 00:00:00 2001 From: Tim Heckman Date: Sun, 16 May 2021 00:14:40 -0700 Subject: [PATCH] Add comment indicating IncidentDetails.Description is deprecated Fixes #277 --- webhook.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index 83a26a00..122d9956 100644 --- a/webhook.go +++ b/webhook.go @@ -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