Global Event Rulesets
Streamline routing alerts across services and take action based on predefined global event rulesets
Last updated
Streamline routing alerts across services and take action based on predefined global event rulesets
Last updated
Global Event Rulesets let you create rulesets for alert routing, eliminating the need for individual alert source webhooks setup for each Service. This centralized routing simplifies configuration management, saving time and enhancing efficiency, particularly for users dealing with numerous micro-services.
The scope for a ruleset is a Team, and the execution updates for Global Event Rulesets are recorded in the Incident Activity Timeline.
Note: This feature will be available for accounts in the Enterprise plan.
To effectively create and manage Global Event Rulesets, the user assigned to the Team must possess the appropriate permissions corresponding to their User Role.
To add new rulesets,
Navigate to Global Event Rulesets -> Add New Ruleset
Next, add the Ruleset Name, optional Description, and select the Ruleset Owner.
Click Save, and you're done.
Note:
You can create and manage up to 30 rulesets for each Team.
A Ruleset Owner is a user or a Squad that someone can reach out to, for anything pertaining to that ruleset. There are no permissions associated with the ownership here.
This creates a new ruleset, and the next step is to add alert sources and start creating rules for your ruleset. If you would like to create multiple such rulesets, each with individual endpoints, repeat the above steps as needed.
Note: You can edit or delete a ruleset from its detail page.
Please note, that deleting a ruleset will remove all the mapped alert sources and their rules.
To add alert sources to a ruleset,
Navigate to Global Event Rulesets -> select the relevant ruleset from the list.
Click Add Alert Source -> In the side panel, search and select the alert source you wish to create a rule for -> Click Add.
Note:
You can only add one alert source at a time.
Deleting an added alert source from the ruleset will result in all its rules getting deleted.
Event rules allow you to set actions that should be taken on events that meet your designated rule criteria. In the current version, the only action that the system takes is routing of incoming alerts.
To add rules for an alert source,
Navigate to Global Event Rulesets -> select the relevant ruleset from the list.
For your added alert source, click Add Rule.
In the side panel, provide a Rule Description and create the Rule Expression, referring to the payload data available on the right.
Lastly, designate the Service for routing when the rule expression is met -> Click Save.
Note: You can create and manage up to 1000 rules for each alert source.
To manage the order of rule execution, simply use the arrows to rearrange the priority of these rules.
Note:
The payload you see on the right may be a sample payload provided by Squadcast for the selected alert source, if you have not set up alert source webhooks and started receiving alerts yet. If the webhooks have been set up and you are receiving alerts, then you will see the payload of the latest alert for that alert source.
Also note that, if alert sources support multiple types of payloads for different events, please ensure you refer to the documentation of your alert source for the different payload structures.
You will see only the Services for the selected Team.
Important: If you intend to delete a Service in Squadcast that is associated with a Global Event Ruleset, please ensure that you delete the rule first. Otherwise, you will receive a warning message similar to the one described below.
Alert Source: Admin Labs
Example Rule Expression:
Any alerts that are sent through event rules but do not match any are routed to the Service configured in the Catch All Rule. If the Catch All Rule is empty, the outlier alert is simply dropped from the system. Configuring this helps in making sure no alerts are missed, that is, every incoming alert ends up reaching a Service.
🔹 Best Practice Tip 🔹 This is not mandatory, but we highly recommend having this configured.
To add a catch-all rule,
Navigate to Global Event Rulesets -> Select the relevant ruleset from the list.
For your added alert source, click Add Catch All Rule -> Select a Service.
Click Save.
Have any questions? Ask the community.