action.alarms

Alarms action rule

type

object

properties

  • accessedValues

The list of the value id used by this action rule. The wildcard ‘*’ can be used to match multiple value (For example, ‘root.*.test’ will match ‘root.device.1.test’, ‘root.server.test’).

Default value is [[]]

type

array

default

items

type

string

  • beginBatch

Notify when a batch of alarms has begun

type

string

  • criteria

Conditional selection of alarms to apply the action to inside the script

type

string

  • endBatch

Notify when a batch of alarms has ended

type

string

  • execute

The actions to apply to each alarms matching the criteria

type

string

  • isTemplateGeneratedByOspComposer

Name of the playbook that generated this file. If present, the file is managed by the Composer and may be overwritten on regeneration. Used for selective clean. Do not edit or set manually.

type

string

  • moduleId

The reference to the module to attach this action rule to

type

string

  • period

The period between two periodic executions of the action

DurationConfigurationEntity

  • scriptFile

The source of the LUA script in the format root/path/to/script.lua. This scripts is called by functions

  • beginBatch

  • endBatch

  • criteria

  • execute

For each of this function, a method with the same name must be present in the source file.

type

string

  • templateId

The id of the template to use for this file

type

string

  • templateVariables

The variables and their values to be replaced from the template

type

object

additionalProperties

  • variablesFiles

The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files.

type

array

items

type

string

additionalProperties

False

DurationConfigurationEntity

type

object

properties

  • unit

The unit of time expressed

type

string

enum

NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS

  • value

The amount of time expressed with the unit

type

integer

additionalProperties

False