Moogsoft Docs

checkSeverity

A Workflow Engine function that checks the severity level of the object, either as a static value, or with an operator. Returns true if the severity level matches your specified value.

This function is available as a feature of the Workflow Engine v1.1 download. See Update the Workflow Engine for information on how to upgrade.

This function is available for event, alert, enrichment, and Situation workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function checkSeverity takes the following arguments:

Name

Required

Type

Description

severity

Yes

Validated String

Severity value and optional operator.

Enter a severity value between 0 and 5.

Valid operators are: >, <, >=, <=, !=, =.

Example

The following examples demonstrate typical use of Workflow Engine function checkSeverity.

If you want to check if an object has a severity level of 3, enter the following:

  • severity: 3

The UI translates your settings to the following JSON:

{"severity":"3"}

If you want to check if an object has a severity level less than 3, enter the following:

  • severity: < 3

The UI translates your settings to the following JSON:

{"severity":"< 3"}

In either scenario, the function returns true if severity matches the value you specified.