esptest.notification.mattermost module
- esptest.notification.mattermost.build_text_payload(text, username=None, icon_url=None, channel=None, props_card=None)[source]
Build a Mattermost incoming webhook payload with Markdown text.
- esptest.notification.mattermost.build_attachment_payload(attachments, text=None, username=None, icon_url=None, channel=None, props_card=None)[source]
Build a Mattermost payload with rich Slack-compatible attachments.
- esptest.notification.mattermost.send_mattermost_message(message, webhook_url=None, mentions=None, timeout=10, username=None, icon_url=None, channel=None, props_card=None, prefix=None, hostname=None)[source]
Send a Mattermost incoming webhook message.
String messages can add an optional prefix, hostname, and mentions. Mapping messages are sent as provided.