Problematic:
Currently, there is a chance to use Slack provider to inject Flux alerts to a Mattermost channel via a webhook.
But if I want to use Mattermost API to send notifications with a Mattermost bot, like
https://my_mattermost_uri/api/v4/posts it's impossible to do because of a small difference in request bodies Slack and Mattermost.
Slack has the channel field to refer a message to a channel (https://api.slack.com/methods/chat.postMessage)
and Mattermost has the channel_id field for this (https://api.mattermost.com/#tag/posts).
That would be useful to add channel_id to Flux Provide to handle Mattermost posts API reference also.
Problematic: Currently, there is a chance to use Slack provider to inject Flux alerts to a Mattermost channel via a webhook. But if I want to use Mattermost API to send notifications with a Mattermost bot, like
https://my_mattermost_uri/api/v4/posts
it's impossible to do because of a small difference in request bodies Slack and Mattermost. Slack has thechannel
field to refer a message to a channel (https://api.slack.com/methods/chat.postMessage) and Mattermost has thechannel_id
field for this (https://api.mattermost.com/#tag/posts).That would be useful to add
channel_id
to Flux Provide to handle Mattermost posts API reference also.