Define Rules¶
With Observability, you can create rules that notify you of important situations. When the rule condition is met, Observability will send an email to specific recipients or a web request to your external tools.
Tip
See Rule Patterns and Examples for ideas of what rules you can create.
How to create a rule¶
Rules are set at the journey level.
- Select Journeys from the menu > choose a journey from the list > select the Rules tab.
- Click Add Rule.
- Use the When drop-down to select the rule trigger.
-
Complete the conditions.
For details on the conditions for each trigger, see Observability Rule Triggers.
-
Optional. Use the For drop-down to select a specific component.
- By default, rules will trigger for any component in the journey.
- This option does not appear for instance alert rules.
-
Click Add Action.
- Select Send Email or Web Request.
-
Complete the action's details.
- Email: Enter one or more email addresses as the recipient. Separate multiple addresses with a comma.
- Web request: Fill out the Method, URL, Payload, and Headers fields.
For more details on how to complete these fields, see Web Request.
-
When done, click Save.
At any point, click Delete to remove the action or Cancel to end without saving.
How to edit an existing rule¶
- Navigate to the Rules tab for a given journey.
- Locate the rule and click Edit.
- Optional. Change the rule predicate.
-
Optional. The action available to edit depends on how the rule was originally configured.
- Expand the action to open the editor.
- Update the email addresses or web request information.
Separate multiple addresses with commas.
Details on how to fill in the web request information can be found in Web Request.
-
Optional. At any point, click Cancel to close the editor without saving.
- Click Update to save the changes.
Delete an existing rule or action¶
From the Rules tab, click Delete to remove a rule entirely.
To delete an action, click Delete in the editor (see step 4 in Edit an existing rule above).
Visual example in Observability¶
