Skip to content

Commit

Permalink
Merge pull request #276 from StupidScience/add-alerts-to-incident
Browse files Browse the repository at this point in the history
Add alerts to IncidentDetails struct
  • Loading branch information
theckman committed Feb 20, 2021
2 parents 4c1598a + 2df5bac commit 69ade4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type IncidentDetails struct {
AlertCounts AlertCounts `json:"alert_counts"`
Metadata interface{} `json:"metadata"`
Description string `json:"description"`
Alerts []IncidentAlert `json:"alerts,omitempty"`
}

// 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 69ade4b

Please sign in to comment.