1

I'm trying to figure out a basic scenario to determine if I should base an alerting application on Esper.

I have a set of sensors that change dynamically over time. Each of these are configured with a timeout that defines how often I should receive a Reading for the sensor. I want Esper to inform me when a Reading has not arrived in time.

Using this event pattern it seems to work, although I have no way of altering the set of sensors once Esper is started.

every s=Sensor -> (every (timer:interval(s.Timeout sec) and not Reading(SensorId=s.SensorId)))

How could I achieve this? I'm guessing that I need to change the "every s=Sensor" part into something different since events are immutable.

kfuglsang
  • 2,385
  • 2
  • 21
  • 26

0 Answers0