Page 1 of 1

[Implemented] Modify Slack JSON Payload

Posted: Tue Dec 31, 2019 1:54 pm
by dhaysley
Ability to modify JSON Payload via the Slack Integration.

Re: Slack JSON Payload

Posted: Tue Dec 31, 2019 2:09 pm
by Tomas
Hi,

Could you please provide a little more details?
What are you looking to send over the Slack sender, when, and how should it be integrated in Unimus? :)

Thanks!

Re: Slack JSON Payload

Posted: Tue Dec 31, 2019 8:54 pm
by dhaysley
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.

Re: Slack JSON Payload

Posted: Tue Dec 31, 2019 9:10 pm
by Tomas
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?

Re: Slack JSON Payload

Posted: Tue Dec 31, 2019 9:46 pm
by dhaysley
Sounds great! Thank you for the quick response.