Cloud Alert – Rule engine

How it work?

Cloud Alert uses rules to define workflow as automations. Rules map triggers to actions (or workflows), apply matching criteria, and map trigger payloads to action inputs.

  • Sample event message
  • Sample filter of rule criteria

Rule parameter

  • Rule criteria
  • Actions: There are 02 types of action upon user definition
    • Slack, MS Team (ChatOps)
    • Runbook

Rule criteria

Rule criteria are the rule(s) needed to be matched against (logical AND). Criteria in the rule are expressed as:

OperatorDescription
containsTrigger value contains the provided value. Keep in mind that the trigger value can be either a string or an array (list).
incontainsString trigger value contains the provided value case insensitively.
icontainsString trigger value does not contain the provided string value case insensitively.
equalsValues are equal (for values of arbitrary type).
iequalsString trigger value equals the provided value case insensitively.
nequalsValues are not equal (for values of arbitrary type).
endswithEnd of the string trigger value matches the provided string value.
startswithBeginning of the string trigger value matches the provided string value.
istartswithBeginning of the string trigger value matches the provided string value case insensitively.
existsKey exists in payload.
nexistsKey doesn’t exist in payload.
greater_thanKTrigger value is greater than the provided value.
less_thanTrigger value is less than the provided value.
insideTrigger payload is inside provided value. (e.g. testing if “trigger.payload in provided_value”). Reverse of contains. (where contains would test for “trigger.payload contains provided_value”).
ninsideTrigger payload is not inside provided value. (e.g. testing if “trigger.payload not in provided_value”). Reverse of ncontains (where contains would test for “trigger.payload does not

Leave a Reply