cancel
Showing results for 
Search instead for 
Did you mean: 

Leonardo IoT rules with aggregation level of 1 min or less

former_member69765
Contributor
0 Kudos

Hi,

Business scenario : If the vehicle is overspeeding only for 1 sec - then its not considered as overspeeding because the vehicle might just be overtaking another one.

However, if the vehicle is driving continiously at high speed - then its considered as overspeeding vehicle..

How can we configure the following rule : If the speed of the vehicle is more than 50km/ph for last 1 min -- then trigger a rule

I cant configure a streaming rule as it checks only only that instant value.

This may fit with with the scheduled rule - but we have a limitation.. The minimum window of aggregation is 2 min !!
So it is very much possible that the vehicle overspeeds for a good 90 seconds and then reduces the speed -- and then this event will never be detected !

Question :

  1. How can we configure such a rule ?
  2. Can we reduce the aggregation period to less than 2 min ?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Varun,

You are right that the minimum window of aggregation is 2min and we can't reduce the aggregation period to less than 2 min due to performance concern.

You can configure the rule with this condition: If minimum of speed from the last 2 min is greater than 50km/h, then trigger the rule:

Condition in the rule UI: If <propertySetName>_aggregate.speed_MIN is greater than 50

Window: 2 min

Schedule: every 2 min

former_member69765
Contributor
0 Kudos

Hi Quoc,

Yes, the rule can be configured with the condition you mentioned ...

However, please note that it depends on business context and in some contexts - 2 min windo might be large enough where we may miss the required check...

For e.g. In the fleet management usecases, we may miss several overspeeding events if the vehicle returns back to normal speed in a 2 min window (which in this context is long enough).

We will inform the customer about this limitation and see if this solution is acceptable to the customer...

Answers (1)

Answers (1)

marcus_behrens
Advisor
Advisor
0 Kudos

Hi, I made one of the product managers aware of this question ...