You can't use this until you register with us!




Description

Send Slack messages based on queries run against an SQL Server database.


Purchasing Options



Available Actions

Send Slack Alerts

Send Slack messages based on query results using a channel name and API token.


Variables

Source Parameters
db_connection required

Credentials to use to access the SQL Server database.

sql_steps required

SQL Steps to run. Last statement result can be multiple rows and columns. Result must have a 'sendalert' column that contains a value that is not NULL.

detail_sql_query

Optional SQL Query to run for each message sent. Results from the 'SQL Steps' may be used as parameters.

post_sql_query

SQL steps to run after alerts are sent. Does not generate new alerts.

user_params

Parameters to use in your SQL Steps and Queries, if any. Refer to slide out help for more information.


Slack Parameters
slack_connection required

Token to use to authenticate with the Slack workspace containing the channel to post in.

channel required

Channel to post the message in.

message required

Message to post in the Slack channel. Results from the 'SQL Steps' can be included by column name. The entire set of results from the 'Detail Query' can be included in a code block using the variable 'detail_results_cb'.


Send Slack Alerts via Webhook

Send Slack messages based on query results using an incoming webhook URL.


Variables

Source Parameters
db_connection required

Credentials to use to access the SQL Server database.

sql_steps required

SQL Steps to run. Last statement result can be multiple rows and columns. Result must have a 'sendalert' column that contains a value that is not NULL.

detail_sql_query

Optional SQL Query to run for each message sent. Results from the 'SQL Steps' may be used as parameters.

post_sql_query

SQL steps to run after alerts are sent. Does not generate new alerts.

user_params

Parameters to use in your SQL Steps and Queries, if any. Refer to slide out help for more information.


Slack Parameters
slack_webhook_url required

Incoming webhook URL.

message required

Message to post in the Slack channel. Results from the 'SQL Steps' can be included by column name. The entire set of results from the 'Detail Query' can be included in a code block using the variable 'detail_results_cb'.