enteringMaintenanceWindow

A Workflow Engine function that returns true if it detects that an alert has entered a maintenance window. This occurs when an AlertUpdate message is intercepted where the previous data (the changes made to the alert) contains the maintenance status flag, while the alert currently has a maintenance status of “in maintenance” (or the configured equivalent).

Note

As this is a message-triggered (event handler) reliant function, it can only be configured in a Workflow Engine that is both listening for the AlertUpdate event handler and standalone. By default, the Alert Actions Workflows engine satisfies both these conditions and is suitable to use with this function.

This function is available as a feature of the Add-ons v2.3.5 download and later.

This function is available for alert workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function enteringMaintenanceWindow has no arguments.

The function has no mandatory arguments, and takes the maintenance status flag and in maintenance value (“In Maintenance,” by default) from the Moolet configuration file $MOOGSOFT_HOME/config/moolets/maintenance_window_manager.conf.

Note

If you are using an alternative configuration file, then contact Moogsoft support for options.

Example

Because this function makes no changes, it is used in conjunction with a “active” function; for example, lowering the severity of an alert entering maintenance, or routing the alert to a specific data path.