Mattermost notifier for experiments on distant cluster.
This function needs to have access to the URK and the API_KEY for the mattermost webhooks.
- Login to your Mattermost team site and go to Account Settings -> Integrations.
- Next to Incoming Webhooks click Edit.
- Select the channel or private group to receive webhook payloads, then click Add to create the webhook
- The API key is the last part of the URL (eg: u2x8rkfugj8zbqby9pw3huqnyc)
It can be provided via different mechanism:
- It can be passed explicitely in the function as
url, api_key
arguments. - It can be set globally for the process with the environment variable
MATTERHOOK_API_KEY
andMATTERMOST_URL
. - It can be set in a config file
matterhook.cfg
, either in the current directory or in$HOME/.config/
. The config file should have the structure:
[matterhook]
url = https://mattermost.yourcompany.com
api_key = XXX