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!
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!
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.