Skip to content

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.

  1. Select Journeys from the menu > choose a journey from the list > select the Rules tab.
  2. Click Add Rule.
  3. Use the When drop-down to select the rule trigger.
  4. Complete the conditions.

    For details on the conditions for each trigger, see Observability Rule Triggers.

  5. 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.
  6. Click Add Action.

  7. Select Send Email or Web Request.
  8. 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 MethodURL, Payload, and Headers fields.

    For more details on how to complete these fields, see Web Request.

  9. 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

  1. Navigate to the Rules tab for a given journey.
  2. Locate the rule and click Edit.
  3. Optional. Change the rule predicate.
  4. Optional. The action available to edit depends on how the rule was originally configured.

    1. Expand the action to open the editor.
    2. 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.

  5. Optional. At any point, click Cancel to close the editor without saving.

  6. 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

(Screenshot of the Rules tab)