[Implemented] Modify Slack JSON Payload
Sure - We use a generic channel for many different alerts. We would like to control items like the title, user and icon presented in the channel when Unimus sends an alert.
Here is an example for the user: curl -X POST --data-urlencode "payload={\"username\": \"UnimusBot\"}" https://hooks.slack.com/services/xxxxxx ... yyyyyyyyyy
Instead of saying: Incoming-webhook it would say UnimusBot.
Here is an example for the user: curl -X POST --data-urlencode "payload={\"username\": \"UnimusBot\"}" https://hooks.slack.com/services/xxxxxx ... yyyyyyyyyy
Instead of saying: Incoming-webhook it would say UnimusBot.
For 2.0, we actually already switched to using a fully customizable Slack Bot, instead of Webhooks.
(this was because we are adding full diffs in Config Change Notifications over Slack, which required it)
So as soon as 2.0 rolls out, you will be able to customize any of these things through customizing the Bot which Unimus will use
Will that be good enough for your needs?
(this was because we are adding full diffs in Config Change Notifications over Slack, which required it)
So as soon as 2.0 rolls out, you will be able to customize any of these things through customizing the Bot which Unimus will use
Will that be good enough for your needs?