🐤Examples
SnowKill GitHub repository features a few complete examples, which may help you to get started.
In order to be able to run all examples, please install with SnowKill with extra examples
option:
Environment variables
You may have to set additional environment variables to run examples below. The full list of samples environment variables:
SMTP setup
Some examples feature Slack notifications. The instructions how to set up a Slack applications are available on Getting Started page.
Some examples feature Email notifications. You may use Brevo to set up a free SMTP server for testing purposes.
1) Basic example
Complete example featuring basic usage of SnowKill:
Authorise by password
Apply all types of checks
Store and deduplicate in Snowflake table
Format and send new check results to Slack
2) Private key auth
An example featuring authorization by private key. It is highly recommended to use private keys for production environment instead of passwords.
3) Postgres storage
An example featuring Postgres table used as storage for SnowKill logs and deduplication checks. It is recommended to use Postgres or another OLTP database to store SnowKill logs, at least until "UniStore" becomes officially available in Snowflake.
4) Markdown email
An example featuring formatting notification message as markdown and sending it via email. Slack message composition is different from classic markdown syntax. But SnowKill provides a formatter for classic markdown, which can be used with other messenger apps or with different types of notification channels. Email is just an example.
5) Filters
An example featuring use of filters to limit the scope of condition checks.
Last updated