Alert
Examples
Python
alert = Alert(
name="some_alert",
warehouse="some_warehouse",
schedule="USING CRON * * * * *",
condition="SELECT COUNT(*) FROM some_table",
then="CALL SYSTEM$SEND_EMAIL('example@example.com', 'Alert Triggered', 'The alert condition was met.')",
)YAML
alerts:
- name: some_alert
warehouse: some_warehouse
schedule: USING CRON * * * * *
condition: SELECT COUNT(*) FROM some_table
then: CALL SYSTEM$SEND_EMAIL('example@example.com', 'Alert Triggered', 'The alert condition was met.')Fields
Last updated