I’ve been really enjoying playing around with the particle rules engine. I’ve implemented real time alerts to slack following the guide at: https://docs.particle.io/tutorials/iot-rules-engine/real-time-alerting/
Near the end it describes a way to send alarms if a device hasn’t published something in 2 minutes or so. This is fine for 1 device or a few even. However when I have a fleet of for example over 10 devices, using the implementation from the guide would mean that I have a subscribe node for each new device in the fleet which is not really scalable.
I was thinking maybe I could fire off a node function every 10 minutes which checks/pings each device in a fleet, but I wouldn’t know how to implement that in the rules engine after retrieving all devices in the fleet. This would be something similar to a “for each loop” I guess. Any suggestions are much appreciated!