Create a timer fields and optionally add scripts to trigger when timers have been breached.
You can create timer fields that display in the alerts table and alert layouts. When you create a timer field, you have the option of providing a target for completion and also the option of triggering a script when the timer field has timed out (the target has passed).
If you set a target for a timer field, the Risk Threshold is automatically activated and displays when the timer is considered at risk. You can customize the timeframe for the Risk Threshold. If you do not provide a target, the timer only counts up from when it was triggered.
You can start, stop, or pause a timer from the CLI, from scripts, and from playbooks.
Go to
→ → → → → .Select Timer as the Field Type.
Type a field name.
(Optional) Under Basic Settings, Timer you have the option of setting a target for the timer field. By default, the timer field shows hours and minutes. You can change this to days and hours, by clicking Hours. If you do not enter the number of hours and minutes, the timer only counts up from when it is triggered.
If you set a target in the timer field, by default the Risk Threshold field is activated. You can edit the Risk Threshold value.
(Optional) Under Run script on timeout, select the script to run when the target has timed out. For example, you could write a script that sends an email when the target has timed out. For more information, see Automate changes to alert fields using timer scripts.
Note
Only scripts to which you have added the
SLA
tag appear in the list of scripts you can select. To add a tag to a script, create a new script or edit an existing script and enter the tag name in the script settings.When you hover over the machine name (below the Field Name) note the name which is used in the command line or script.
Save the field.
(Optional) Add the field to one or more alert layouts. By default, the timer field is available to view in the alerts table.