Json Sender Notifications Channel


#1

Hello guys, help me please with question: i need to send json object, like example: {“filed1”:“value1”, “field2”:“value2”} to some apiwith HttpMethod=POST. But with current existing channels, i see that it isn’t possible. So, how can i add New Channel Notifier?
I see that it is neccesary add some changes in existing source code, or may be exist another ways?
thanks.


#2

It’s not very clear but do you mean Alerting Notifications?

There is the webhook that sends json when an alert is triggered which you can integrate with. But you cannot define your own JSON - you have to use what is sent by the webhook.


#3

ok, thanks, I can write an additional api that will parse a message from webhook. It’s more simple solution in this case.


#4

Yes, that’s why the webhook exists. There is a feature request to allow custom mappings of the json data returned from the webhook but that won’t be done in the next few months.