-
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
1096 notification use body switch #1101
1096 notification use body switch #1101
Conversation
|
||
next string | ||
email string | ||
post, get string | ||
body string | ||
// Maybe not used, need to learn more GO :( | ||
useBody bool |
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.
This is indeed not used.
Hi @captncraig, My pure intention with this PR and issue 1096 was to have a clean template subject and use the template's body to render a json object to be sent to our Hipchat bot. I've read the docs about 'json' function available in notification body template,(assuming we'll add the template's body to be available in notification body) it is unclear if the template's body will be rendered as HTML and then passed to notification body or notification body will take the template's body as plain text and render it. |
Running validate locally exited with code 0. |
@ayashjorden sorry this has sat so long. If you can rebase to master and resolve conflicts I can probably merge it. Something about it feels a bit off, but I think it is an ok solution for now. |
ee51c60
to
dcf238e
Compare
@captncraig, I'd be happy to understand why this solution is a 'bit off' from your point of view... Thank you, |
f34df42
to
c9b7718
Compare
Enables the notification to render the template's body content instead of subject content.
c9b7718
to
f3b1340
Compare
@captncraig @kylebrandt , To overcome this, I've been using a regex ( What do you think? |
i would really love to see an option to encode the body as JSON natively. I'm using the same workaround @ayashjorden is using right now but it's not the prettiest way to handle this... Also the ack and close messages are HTML encoded, it would be great if those can also have an option to JSON encode. This will give us a lot of flexibility for alert processing in external tools, for example we are looking at using stackstorm to receive the alerts from Bosun and run some automations based on the alert fields. |
Hi,
As discussed with @captncraig, and in issue 1096:
.
have the.Subject
and.Body
(as per @mjibson idea)