Skip to content

Conversation

theckman
Copy link
Collaborator

For the Webhook object sent from PagerDuty, the "alerts" key is not a JSON array
of fully hydrated objects. Instead, only the "alert_key" JSON key is set within
each object, which might be unclear based on the type we use in the Go client.

This change adds a comment above the Alerts field to indicate it's not a slice
of fully hydrated IncidentAlert values, and that only AlertKey is set.

@theckman theckman added this to the v1.5.0 milestone May 18, 2021
@theckman theckman requested a review from stmcallister May 18, 2021 01:54
Copy link

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks! 🎉 🌮 👍

For the Webhook object sent from PagerDuty, the "alerts" key is not a JSON array
of fully hydrated objects. Instead, only the "alert_key" JSON key is set within
each object, which might be unclear based on the type we use in the Go client.

This change adds a comment above the Alerts field to indicate it's not a slice
of fully hydrated `IncidentAlert` values, and that only `AlertKey` is set.
@theckman theckman force-pushed the clarify_webhook_alert branch from b116e6a to 4d613ad Compare October 9, 2021 21:00
@theckman theckman merged commit b7286a4 into master Oct 9, 2021
@theckman theckman deleted the clarify_webhook_alert branch October 9, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants