Scripted fields versus scripts in discovery objects

Ahh, I see. In the meantime, if you alter your script as follows, it should work for you in both Discover and Visualize:

return doc["hubEvent.downtime"].size() > 0 ? doc["hubEvent.downtime"].value / 3600.0 : null;

Let me know if that works!

1 Like