-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add links to pagerduty2 alerts #1961
Conversation
9bbb0ad
to
70cc7ce
Compare
a459505
to
39052bd
Compare
* Also change the signature of PagerDuty2Service.Handler to return (alert.Handler, error)
39052bd
to
f17c583
Compare
@stevebang @russorat @nathanielc @timhallinflux I'd love some feedback on this feature. |
It looks like all tests passed but the test just exited with a 1 exit code? I grepped through the output and I see 830 tests run, 829 tests passed, and 1 test skipped. |
@stevebang @russorat @nathanielc @timhallinflux Can someone take a look at this? Also, is there a way to trigger another test build run? |
4ff4d46
to
ef22caa
Compare
@stevebang @russorat @nathanielc @timhallinflux I've merged master and made a tweak to the changelog which forced a new build which succeeded this time. Anything else I can do? |
Can you clarify how this fits with: #2081. Thanks for the contribution. Help me sort out what (if at all) overlaps and we will review this for K. 1.5.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I have tested locally. I will also put up a PR to add one more test case.
Add links to pagerduty2 alerts
Required for all non-trivial PRs
This feature allows one to do:
To add a list of custom links to pagerduty alerts. They'll be put in the
links
field of the body sent tohttps://events.pagerduty.com/v2/enqueue
as per the docs here: https://v2.developer.pagerduty.com/docs/send-an-event-events-api-v2. Both the URL and text fields are treated as templates so one can interpolate fields/tags/etc. The link text is optional and will default to the link url when missing.