On this page
Before you start: the admin role (or notification-edit permission), a Slack channel and its bot token.
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Open Activity → Notifications (or Create → Create channel).
- Under Destination, enter Slack channel (#principal-alerts) and Slack bot token (Create a Slack app).
- Under Events, keep All events or pick events (Drift found, Apply failed, Sync failed or partially completed).
- Keep Enabled on under State and click Create channel.
- Click Send test (paper plane) and check Slack.
- Optional: filter Activity, click Subscribe, pick Needs attention or Every result and Slack channel (or Email to …), then click Subscribe.
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
Failed message: open the channel, check Recent deliveries, fix the cause and click Resend.
Create a Slack app#
- Create an app at api.slack.com/apps (docs).
- Add bot scope
chat:write, install to workspace and invite the bot to the channel. - Paste Bot User OAuth Token (
xoxb-…) into Slack bot token (tokens).
Through the API#
- Create: POST
/notifications(optional/channels event_types,severity_filter, omit bot token to use the installation app):json{"channel":"slack","enabled":true,"config":{"channel":"#principal-alerts"}} - Test: POST
/notifications./channels /{id} /test - Deliveries: GET
/notifications, resend POST/channels /{id} /deliveries /notifications./channels /{id} /deliveries /{delivery_id} /resend