Sometimes you have some complex python code in some monitors and it's hard to maintain. when this code is used in various monitors it's horrible. The solution is to externalize the python code in a external module!
This example how how to workaround these problems.
You can change the code in TSTest.py and see how it is take into account once you restart the monitor. You can use any functions or variables present in the ThinkServer.
You can even add the additional parameters variables if you want the same way the other variables are obtained, modifying the init function in the module.
Still have questions? We can help. Submit a case to Technical Support.