Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.34 KB

action.md

File metadata and controls

44 lines (34 loc) · 1.34 KB

Action

Besides the generic options listed below, actions have additional options that are specific to their type. Actions control what happens when an alarm (check) or event (report) is triggered.

Generic options

name example optional default
disable true false
name "Foobar"
timeout 3 10
placeholders {"internal_action_id" = "id_foobar"}
filter {type = "Average", window_size = 16 }
type "Email"

disable

If true, the action is disabled and will not be triggered.

name

The name of the action. It is used for logging and the action_name placeholder. Must be unique.

timeout

The maximum time in seconds an action may take to finish its execution before being interrupted.

placeholders

Custom placeholders that will be merged with ones of the check/alarm.

filter

Filter to transform the measurement data using a transformation function.

type

Type of the check as listed below. This determines which specific check and alarm options are available.

One of:

Generic placeholders (for all action types)

action_name

Name of the action that was triggered.