mattermost#

Mattermost contrib functionality.

Function notify_mattermost#

notify_mattermost(title, content, hook_url=None, channel=None, user=None, mention_user=None, icon_url=None, icon_emoji=None, **kwargs)#

Sends a mattermost notification and returns True on success. The communication with the mattermost API might have some delays and is therefore handled by a thread. The format of the notification depends on content. If it is a string, a simple text notification is sent. Otherwise, it should be a dictionary whose fields are formatted as key-value pairs.

Class NotifyMattermostParameter#

class NotifyMattermostParameter(*args, **kwargs)#

Bases: NotifyParameter

get_transport()#

Method to configure the transport that is toggled by this parameter. Should return a dictionary with "func" and "raw" (optional) fields.