Slack

Slack formatter returns message blocks formatted specifically for Slack. Slack uses its own custom variation of Markdown: mrkdwn.

Example

snowkill_formatter = SlackFormatter(getenv("SNOWSIGHT_BASE_URL"))

for r in check_results:
    response = send_slack_message(
        slack_token=getenv("SLACK_TOKEN"),
        slack_channel=getenv("SLACK_CHANNEL"),
        message_blocks=snowkill_formatter.format(r),
    )

Usage notes

  • Read more about Slack integration on a dedicated documentation page.

  • Slack should start with #, for example: #snowflake-monitor

Last updated