We want to calculate the percentile values from a timeseries of data from a group of devices.
Each device transmits data every 10 seconds. We average over a period of 5 minutes. For each 5 minute period we wish to know the 5,10,50,90, 95% percentile values.
I've had a look at rule engine node functions and perhaps the Analytics or Math script nodes could do this, but it's not clear.
Or if not the rule engine, can a function be implemented in a dashboard widget?
Looking for some guidance on what is possible. Thanks.
I'm trying out the rule engine node functions for Analytics aggregation, which can do average. But not clear if percentiles are possible.
Save that data when it comes to the system (Save timeseries).
Generator on every 5 minutes -Success-> API call rule node "Get time-series data (getTimeseries)" (look at Swagger for details) onto that device which has telemetry. -Success-> blue script rule node in which you will get your device telemetry in msg, and therefore you can do any math over it -Success-> save timeseries
It is possible to do the "same thing" on dashboard, but with much more skill and effort.