Describes the Array object of the Action key within an Event object.
Events support a wide variety of types for the action object based on a: email, sms, web-hook, set-variable, slack-webhook, voice, ubifunction, user and incident. This causes the JSON action object to be highly nested and have many variants in order to support all the above types.
In its base form, the action object follows this structure:
{
"data": {},
"name": "", // String
"type": "Type of action", // Options: ["email", "sms", "web-hook", "set-variable", "slack-webhook", "voice", "ubifunction", "user", "incident"]
"isGeneric": true, // Options: [true, false]. Defaults to true
"repeatAction": false, // Options: [true, false]. Defaults to false
"idGroupAction": "", // String. Recommendation: at least 5 characters
"back_to_normal": false, // Options: [true, false]. Defaults to false
"maxRepetitions": "", // String or Integer. Defaults to none
"repeatInterval": {} // Object containing value and unit for the repeated action
}
Each key represents the following:
Property
Type
Description
data
Object
Object containing data about the action (please see below)
name
String
Name of Action
type
String
Type of action, valid values are: email, sms, web-hook, set-variable, slack-webhook, voice, ubifunction, user and incident
isGeneric
Boolean
True if Action is generic
repeatAction
Boolean
True if Action should be repeated. If repeatAction is False, maxRepetitions and repeatInterval are hidden
maxRepetitions
Number
Number of maximum repetitions of the Action. Required when repeatAction is active
repeatInterval
Object
Object containing value and unit for the repeated action. Required when repeatAction is active. unit: can be T (minutes), H (hours) or D (days). The maximum values per unit are as follows: {"T": 43200, "H": 168, "D": 90}
idGroupAction
String
ID of the Group Action
back_to_normal
Boolean
True if action has a "Back to Normal" action configured
data Object - Attribute of actions Array
The data key within an action object holds an object as well, which has the below structure based on the value of the type key:
📘
Fields marked Bookmarks: Yes in the tables below accept template variables. See Bookmarks for the full reference.
Email
{
"emails": [], // Array or string separated by ",". Defaults to []
"message": "", // String
"subject": "" // String
}
Property
Type
Bookmarks
Description
emails
Array
Yes
Array of email addresses the email should be sent to
message
String
Yes
Content of the email
subject
String
Yes
Subject line of the email
{
"emails": [
"[email protected]"
],
"message": "Hey there, {{variable.name}} was {{last_value}} at {{trigger_timestamp|timestampformat('America/Bogota')}}.",
"subject": "{{variable.name}} alert!"
}