Hi Aissa,
Your use case is quite unusual. You usually have an alert in a dashboard
(potentially sending an email), if any of the sensors show an error. You
usually want to retain the original error code to be able to quickly
identify the issue.
Your use case would make sense if you want to filte
Am I understanding you correctly in that, if one sensor of on factory
raises an alert, then you want all sensors in that same factory to raise
an alert?
How big is this dataset that maps sensors to factories?
Maybe you can just load them into a Map in say a
FlatMap, enrich the sensor data str