PagerDuty / go-pagerduty

go client library for PagerDuty v2 API
https://v2.developer.pagerduty.com/docs/rest-api
Apache License 2.0
285 stars 241 forks source link

ResolvedAt field missing from Incident struct #486

Closed dnwe closed 1 year ago

dnwe commented 1 year ago

I wanted to use the resolved_at field from the go-pagerduty API to allow me to show the duration of resolved incidents in the same way as the PagerDuty UI does. However, I noticed it was missing from the Incident struct. In the short term I used LastStatusChangeAt (last_status_change_at), but it would be good to have the proper field available and populated

I see that a PR already exists at https://github.com/PagerDuty/go-pagerduty/pull/482 and worked well in my testing

ChuckCrawford commented 1 year ago

This will be included in the 1.8.0 release.