Is there any way to export an event detector?
-
For each mango unit I install, I add an event detector to a certain data point. Is there a way to export one, so that I can modify as required and then import for each unit?
Thanks -
@till
you can export the event handlers in below window
here is what the json file looks like, you can just add/modify, then re-import it, I think that should work.
-
Event detectors are exported with the Data Point. I believe you can import event detectors on their own but I don't think we have that documented. We have plans to make this easier but if you are using Mango v4 there are some very helpful scripting tools for bulk configuring event detectors
-
@joelhaggar
the video link is not working. -
Sorry about that. Try this one:
-
Also, this is the link to the script example repo: https://github.com/infiniteautomation/script-examples
-
We're on 3.7.7.
Event detectors are exported with the data points, great. In my scenario I'm adding an event detector to a data point that is being published to me from another Mango, i.e. I'm not actually creating the data point, which means I cannot add the detector while I import it. So, being able to import the event detector on its own, attaching it to a given xid would be great. You say it's possible but not documented?
Thanks! -
@till
give me suggestion a try. just add one. -
@cwangv
Yes, thanks. Seems like there is no harm in just importing it over the existing one that I receive through the Persistent TCP data source.