I have some tags being populated from a device. I would like to create various moving window average based alarms - e.g. if the average value in the past n minutes is outside some setpoints, raise an alarm. I’m looking at implementing this for a wide variety of tags, for a wide variety of window sizes.
I can do this with gateway scripts, but I’m not sure if that’s the best way. Are there any other techniques I could use for this?