watchiot/watchiot-web

Evaluator model

Closed this issue · 0 comments

This model define the script to eval the datas and take decision about if send de notification.

[id_user, id_space, id_project, script]

script:

byDefault = Stage.Normal;
if(field1 == 24 || field2 >= 15)
notification(Stage.Warning);
elseif(field3)
notification(Stage.Panic, Notif.BY_EMAIL, "Description abaut what happened, fierd1 =" + field1 );