I am working on renewing our event integration to PD and I am using the Go package (github.com/PagerDuty/go-pagerduty).
The only part that doesn’t seem to work is setting the timestamp in the payload to the actual time of the event. I have tried various ISO8601 / RFC3339 formats, just in case it is fussy, but none seem to work.
Am I pushing water uphill or should this work?
The formats I have tried are time.RFC3339
and then changing the timezone to match the examples in the dev docs (i.e. 2006-01-02T15:04:05-0700
and 2006-01-02T15:04:05-07:00
). I can see the correct test value is passed to ManageEventWithContext()
but in the dev web interface all events raise incidents with wall time and not the embedded value (from yesterday or an hour ago, in case there is a limit).
When viewing the underlying message in the web side it is in the old V1 format not PD-CEF and so carries no time information.
Any ideas or guidance, please?
Thanks!