Events & Triggers
This guide will help you efficiently manage and monitor key activities through two features: Events and Triggers.
Events provide a comprehensive view of all the activities and occurrences within the platform. This centralized view ensures that you can easily keep track of every significant event, giving you valuable insights into your operations.
Triggers allow you to set up customized alerts based on specific events. With this feature, you can define conditions that, when met, will automatically notify you, ensuring that you stay informed and can take timely action.
Triggers
Triggers are a powerful tool that enable you to solve key automation, transformation, observability and orchestration use-cases:
- Triggers run as a result of platform events
- Triggers rules can support very simple logic as well as more advanced logic
- Triggers can take various actions such as:
- Send a Slack notification
- Send an Email notification
Rules
Your monitor rule is evaluated every time a system event is generated. Each event has different properties, which will be available as variables in your rule expression.
Rules are expressions that evaluate to a boolean outcome. Below are sample rules:
event == "connection_failed"- trigger when a connection has failedevent == "connection_succeeded"- trigger when a connection has succeededevent == "connection_failed" && retry_count >= 3- trigger when a connection failed for 3 or more consecutive timesevent == "connection_succeeded" && retry_count >= 3- trigger when a connection has recovered after 3 or more attemptsevent == "connection_failed" && destination_connector_name == "BigQuery"- trigger when a connection with BigQuery destination has failedevent == "user_added" && !str::regex_matches(email, ".*@singular[.]net$")- trigger when a user gets added outside of your domainevent == "account_connector_deleted"- trigger when an account connector (source or destination) gets deletedevent == "account_connector_deleted" && connector_type == "SOURCE"- monitor triggers when a source is deleted
Create a new trigger
- Navigate to the Triggers page within the platform (Automation->Triggers)
- Click "Create Trigger" on the upper right corner
- Name your trigger
- Configure your rule - This rule will be evaluated against system events, and if the expression returns True, it will trigger the associated actions.
- Configure your desirable actions by adding email address or slack integration