How to stop event temporally?
I am wondering whether there is a way to stop all events logging for a period of time? Thank you very much!
phildunlap last edited by
To the best of my knowledge, there is no way to configure such a behavior in the officially supported Mango through the UI. This means the quality of the feature would be connected to how much effort you wanted to put into coding it, but a simple hardcoded solution can be achieved by compiling the core with a modified EventManager. If you modify the 'raiseEvent' method at line 89 of com.serotonin.m2m2.rt.EventManager.java to include something like ```
&& time % 1000606024 < 1000606012
Also, I apologize, but I haven't explored possible time zone or server time issues that could arise trying the above method, though I suspect those are handled elsewhere for you already.
Check out maintenance events.
The "System Settings - Other settings - Purge events older than" option works for my purpose. Thank you!