Mike_Moniz
Professor
12 months agoRe: Complex DataPoint.
I personally haven't used groovy complex datapoints but looking at the documentation at https://www.logicmonitor.com/support/logicmodules/datasources/datapoints/complex-datapoints#groovy it looks like the normal datapoints are in an "output" array so I assume you can use something like this:
memoryUsageKB = output["MemoryUsageKB"]
I'm not sure if you even need to add "long" or "double" to the beginning of that line though. Note that the scientific notation is just how the raw tab is presenting large numbers, other parts of LM doesn't do that. It's actually not stored in scientific notation in the backend. I personally would just keep it as a int/long (without decimals) when doing the math, even if you need to convert it to the bytes first.