Alert Engine
Configurable Threshold Rules
The alert engine evaluates every incoming telemetry payload against a set of configurable threshold rules. When a condition is met, the engine creates an alert, generates an incident, and queues notifications — all in a single synchronous PHP call.
Threshold Conditions
Supports gt, lt, gte, lte, eq, and flag_true operators. Set thresholds per metric per solution module.
Cooldown Logic
Configurable cooldown prevents duplicate alerts. Default: 300 seconds between identical alerts per device.
Severity Levels
Info, Warning, and Critical severity levels drive visual indicators, notification priority, and escalation.
Auto-Incident Creation
Critical and warning alerts automatically generate incidents with assignment and acknowledgement tracking.
⚠️ Scenario: Health Alert Cascade
A blood pressure monitor sends systolic=178. The engine checks: 178 ≥ 160 (critical threshold) → true. No open alert exists for this device within the 300s cooldown → create alert. Alert created → incident auto-generated → SMS + email queued to emergency contacts → dashboard card turns red with pulsing border.
📡 Built-in Default Rules
health.systolic ≥ 160 → CRITICAL
health.spo2 ≤ 92 → CRITICAL
health.fall_detected = true → CRITICAL
vehicle.impact = true → CRITICAL
factory.gas_ppm ≥ 200 → CRITICAL
worker.panic_pressed = true → CRITICAL