Alerte
Evaluates conditions and dispatches multi-channel alerts (email, webhook, Slack, in-app). Supports level or edge triggering and AND/OR condition combination.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
alertName | dynamic value | Yes | Yes | Alert name |
severity | dynamic value | Yes | Yes | Severity: critical, high, medium, low |
triggerMode | choice (level, edge) | No | No | Trigger mode (Default: "level") |
conditions | array | No | No | Conditions to evaluate |
conditionCombineMode | choice (and, or) | No | No | Condition combination mode (Default: "and") |
channels | object | No | No | Notification channels: email, webhook, Slack, in-app |
outputVariable | text | No | No | Output 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
| Problem | Solution |
|---|---|
| Alert not triggered | Check 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.