Skip to main content

Alerte

Evaluates conditions and dispatches multi-channel alerts (email, webhook, Slack, in-app). Supports level or edge triggering and AND/OR condition combination.

Parameters

ParameterTypeRequiredVariableDescription
alertNamedynamic valueYesYesAlert name
severitydynamic valueYesYesSeverity: critical, high, medium, low
triggerModechoice (level, edge)NoNoTrigger mode (Default: "level")
conditionsarrayNoNoConditions to evaluate
conditionCombineModechoice (and, or)NoNoCondition combination mode (Default: "and")
channelsobjectNoNoNotification channels: email, webhook, Slack, in-app
outputVariabletextNoNoOutput variable name

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : alertResult

{
"conditionMet": false,
"severity": "...",
"alertName": "...",
"evaluatedConditions": [],
"dispatched": {}
}

Example

Trigger an alert when CPU exceeds 90%.

Input :

{"alertName": "CPU > 90%", "severity": "high", "conditions": [{"field": "cpu", "operator": "gt", "value": 90}]}

Output :

{"conditionMet": true, "severity": "high", "alertName": "CPU > 90%", "evaluatedConditions": [{"field": "cpu", "operator": "gt", "value": 90, "result": true}], "dispatched": {"inApp": true}}

Common errors

ProblemSolution
Alert not triggeredCheck the conditions and their operators. Ensure referenced variables exist.
Tip

Use edge mode to trigger the alert only on transition (from false to true). Level mode triggers on every positive evaluation.