pagerduty_event_orchestration_unrouted

An Unrouted Orchestration allows users to create a set of Event Rules that will be evaluated against all events that don't match any rules in the Orchestration's Router.

The Unrouted Orchestration evaluates events sent to it against each of its rules, beginning with the rules in the "start" set. When a matching rule is found, it can modify and enhance the event and can route the event to another set of rules within this Unrouted Orchestration for further processing.

Example of configuring Unrouted Rules for an Orchestration

In this example of an Unrouted Orchestration, the rule matches only if the condition is matched. Alerts created for events that do not match the rule will have severity level set to info as defined in catch_all block.

resource "pagerduty_event_orchestration_unrouted" "unrouted" {
 event_orchestration = pagerduty_event_orchestration.my_monitor.id
  set {
    id = "start"
    rule {
      label = "Update the summary of un-matched Critical alerts so they're easier to spot"
      condition {
        expression = "event.severity matches 'critical'"
      }
      actions {
        severity = "critical"
        extraction {
          target = "event.summary"
          template = "[Critical Unrouted] {{event.summary}}"
        }
      }
    }
  }
  catch_all {
    actions {
      severity = "info"
    }
  }
}

Argument Reference

The following arguments are supported:

Set (set) supports the following:

Rule (rule) supports the following:

Condition (condition) supports the following:

Actions (actions) supports the following:

Catch All (catch_all) supports the following:

Attributes Reference

The following attributes are exported:

Import

Unrouted Orchestration can be imported using the id of the Event Orchestration, e.g.

$ terraform import pagerduty_event_orchestration_unrouted.unrouted 1b49abe7-26db-4439-a715-c6d883acfb3e