Runbook triggers are a set of conditions that, when fulfilled, trigger a run of a runbook.
In the start section of your runbook, click Add trigger, as shown below.
By default, the newly created trigger will cause the runbook to run when an activity is created, as shown below.
In the right hand panel, define and finetune the trigger, as shown below.
A runbook trigger consists of a type and one or more conditions, as shown below.
A variety of types of runbook triggers are available, enabling the runbook to be triggered when an activity is created or updated, when an alert is received via a webhook, and when a runbook's state changes, as shown below.
These runbook triggers run any time an activity is created.
When you click the Conditions button after selecting "Activity creation", you can set conditions, as shown below.
customOutputParams
from the data parser is true. You must set a field (path within the JSON object), select a comparator (=, !=, >, >=, <, <=, or contains), and set a value to compare against. See Data parsers getting started for more info.As the name implies, these runbook triggers run any time an activity is updated.
When you click the Conditions button after selecting "Activity update", you can set conditions, as shown below.
Note: Each of these condition types will only match if the relevant activity trait changed in the update we’re looking at. For example, if you have these conditions set:
The trigger won’t fire if a SEV0 Task changes to be an Incident, the severity didn’t change, so the condition on old severity won’t be met.
As the name implies, these runbook triggers run any time the selected webhook fires.
customOutputParams
from the data parser is true. You must set a field (path within the JSON object), select a comparator (=, !=, >, >=, <, <=, or contains), and set a value to compare against. See Data parsers getting started for more info.As the name implies, these runbook triggers run any time the state of the runbook's run changes, as shown below.