Pāriet uz galveno saturu

Do notifications should come at start or at the end of an exception?

CesarOrtiz-1781
Oriģināls plakāts

In MyGeotab, do notifications trigger at the start of an exception event—as soon as the rule condition is accomplished and is processed by the rules engine?

The question comes because some customers have reported that rules such as Inside Area "ZONE" and Stop trigger notifications only after the exception ends. And if it's been used for security purposes (i.e. for notifications when a vehicle is parked into a dangerous zone), then it would be unefficient.

Certainly, we can run controlled tests to confirm, and gather some real world examples. But first, I'd like to have a confirmation of what's the expected behaivor

Thanks in advance

Pievienojieties sarunai

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

4 Atbildes

EishiFUN
Kopienas administrators

Hi @CesarOrtiz-1781 , great question!

The notification timing depends on the rule condition. Not every exception condition is instantaneous.

Entering Area "ZONE" is an instantaneous condition. A notification should be generated once the relevant GPS data is received and processed by the rules engine. Some delay may still occur because of device transmission, server processing, and notification delivery.

Inside Area "ZONE" represents a continuing state. The exception remains active while the vehicle is inside the zone, so the notification may be sent only after the exception ends.

Stopped inside zone also requires the system to establish that the vehicle has stopped. This normally means no movement for approximately 200 seconds, or the ignition being turned off.

For security use cases, such as detecting a vehicle entering a dangerous area, Entering Area is generally the more appropriate condition than Inside Area. I would also recommend validating the end-to-end timing with a controlled test using the device timestamp, exception timestamp, and notification delivery timestamp.

You can find more information about the available zone conditions here:
https://support.geotab.com/help/mygeotab/groups-and-rules/rules/rule-conditions

Hope that helps!
Eishi FUN

@EishiFUN I think the way the rules work is that it triggers the email notification immediately as soon as the conditions are met, and if the Event goes on long enough, it will also send another email notification when the Event ends. We used to have a lot of conversations with customers that had a duress rule that would trigger when an auxiliary was engaged and in a lot of those cases, due to power loss or the button being left engaged, they would get a notification when the Event ended, with the timestamp of when it first triggered. Since it would often be hours or days later, the clients would often think that the notification was delayed and we'd get them to go through their emails to prove it also sent an email when the Event first triggered.

EishiFUN
Kopienas administrators

Hi @Tony_M , thank you for adding this. I checked this further, and I think your explanation adds an important nuance. My earlier reply was too absolute when I said that an Inside Area notification may only be sent after the exception ends.

The more accurate explanation is that the exception has a start and an end, and notifications can be associated with both points. An initial notification may be generated when the exception is created, and a further or final notification may be generated when a long-running exception closes. Whether both are sent can depend on the rule, notification type, and how the event is processed.

There is also a separate possibility of an actual delivery delay. If the device data arrives late, the device is unable to communicate, or the notification-processing pipeline is delayed, the first notification may not arrive until later. In that situation, the email timestamp does not necessarily represent when the vehicle first met the rule condition.

The condition itself still affects when the exception starts:

- Entering Area is the most appropriate condition for a security alert when the goal is to know that a vehicle entered a restricted zone.
- Inside Area represents an ongoing state while the vehicle remains in the zone.
- Stopped inside zone must first establish that the vehicle has stopped.

For customers using these rules for security, I would recommend testing with an Entering Area rule and comparing the device timestamp, exception start time, exception end time, notification-created time, and email-delivery time. That should show whether the behavior is related to the rule condition or to data/notification delivery.

Thanks again for sharing your experience. It is a helpful distinction.

Eishi FUN

The short answer is Yes they do tigger at the start of an exception.

Joprojām ir jautājumi?