-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 PagerDuty source field (PD-CEF) #3100
Conversation
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.
thanks! @EronWright since you've filed the original issue, does it look like the right approach for you?
notify/pagerduty/pagerduty.go
Outdated
if n.conf.Source != "" { | ||
payloadSource = n.conf.Source | ||
} |
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.
The default value could be handled in config/notifiers.go when unmarshaling the YAML data. This would be more explicit when users look at the /api/v2/status endpoint.
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.
Updated 👍
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Can you sign your commits? the easiest solution is probably to squash all the commits:
|
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
…anager into pagerduty-source-field
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
…anager into pagerduty-source-field
I opened a new PR with the signing properly setup: #3106 - sorry! |
No problem! |
Fix #3079 by adding a new
source
field to the PagerDuty config. Maintains backward compatibility by defaulting to theclient
field. Added some tests to ensure behaviour works as expected now and in the future. Updated docs as well.this is my first ever open source contribution! #hacktoberfest