Slack integration
Create Slack application and obtain auth token
Go to https://api.slack.com/apps and login.
Press "Create New App" button, choose "From an app manifest".
Choose workspace, press "Next".
Choose "YAML" tab. Copy-paste settings below. Press "Next".
Press "Create".
Press "Install to Workspace" button, press "Allow".
Go to "Settings -> Install App" and copy the contents of Bot User OAuth Token field. You will need it to send notifications from Python script.
Here is a video-tutorial which might help you if you're new to Slack Apps: https://www.youtube.com/watch?v=q3SBz_eqOq0
Optionally, you may go to "Settings -> Basic Information", scroll down to "Display Information" section and upload this App Icon:
It will make notification messages look better.
Create a channel for notifications in Slack
The suggested channel name is: #snowflake-monitor
How to create a channel: https://slack.com/intl/en-gb/help/articles/201402297-Create-a-channel
Using Slack integration
This is a basic function which sends notifications to Slack:
You may consider using official Python Slack SDK instead.
Last updated