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




Description

Send one or more dynamic email or Slack messages based on the results of a set of SQL Steps executed against a database.


Purchasing Options



Available Actions

Send Slack Alerts

If the SQL Query evaluates to True, send Slack messages with the content specified.


Variables

Database Parameters
target_db required

Database to run the SQL Steps on.

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 True or False value.

post_sql_query

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

user_params

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


Slack Parameters
slack_token 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.


Send Email Alerts

If the SQL Query evaluates to True, send email messages with the content specified.


Variables

Database Parameters
target_db required

Database to run the SQL Steps on.

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 True or False value.

post_sql_query

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

user_params

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


Email Parameters
smtp_connection required

SMTP Server to use.

alt_from

If this field is blank, the e-mail address associated with the Username specified in the SMTP connection will be used.

to required

Addresses to place in the To field of the e-mail. Multiple values must be separated by commas.

cc

Addresses to place in the Cc field of the e-mail. Multiple values must be separated by commas.

bcc

Addresses to place in the Bcc field of the e-mail. Multiple values must be separated by commas.

subject required

Subject content of the email.

body required

Body content of the email.