Alerting Engine
AdaTrack's Alerting Engine allows you to monitor your telemetry data and receive instant notifications when specific conditions are met. While Geofencing handles spatial triggers, the Alerting Engine monitors sensor data, device state, and battery health.
How it Works
Ingestion: A UDP packet arrives and is decoded into a JSON object.
Evaluation: The Alerting Engine immediately checks the decoded data against your active Telemetry Rules.
Trigger: If the conditions are met (and the rule is not in its cooldown period), an alert is triggered.
Dispatch: The alert is sent to your configured Alert Channels (Slack, Email, Webhooks, etc.).
Telemetry Rules
A Telemetry Rule defines the logic for triggering an alert. You can create these rules through our no-code builder.
Rule Components:
Scope: The specific Device or Device Profile the rule applies to.
Logic Gate: Use
ANDorORto combine multiple conditions.Conditions: The actual logic (e.g.,
temperature > 50ANDbattery < 10).Severity: Categorize alerts as
Info,Warning, orCritical.Cooldown: The minimum time to wait before triggering the same alert again (prevents notification spam).
Condition Operators
The Alerting Engine supports several operators for comparing telemetry fields:
equals
Exact match (string or number).
status == "error"
>
Greater than.
temperature > 40
<
Less than.
voltage < 3.2
contains
Checks if a string contains a substring.
msg contains "failure"
exists
Checks if a specific key is present in the payload.
exists error_code
Alert Channels
AdaTrack supports multiple destinations for your alerts:
Email: Receive detailed alerts with a link to the device's live position.
Slack: Direct notifications to a specific channel using Webhooks.
Webhooks: Send a POST request with the alert payload to any external service or custom API.
Telegram: Receive instant notifications via a Telegram Bot.
Custom Message Templates
You can customize the text of your notifications using Message Templates. These allow you to inject real-time data into the alert message:
Device {device_name} is overheating! Current temp: {temperature} C.Warning: Low battery detected on {device_id}. Remaining: {battery}%
Best Practices
Set Appropriate Cooldowns: For sensors that report frequently (e.g., every 30 seconds), set a cooldown of 30-60 minutes to avoid flooding your inbox.
Use Severity Levels: Configure different channels for different severities. For example, send
Infoalerts to Slack andCriticalalerts to both Slack and Email.Validate with Test Packets: Use a simulator or a test device to trigger your rules and ensure the notifications are formatted as expected before deploying to your entire fleet.
Last updated