I am currently developing a kibana watcher alert and I am comparing two values to generate an email if the condition comes true. For that I calculated an average value and it comes with many decimal places (nearly 20). I found that it can be rounded into several decimal places from transform section. I have tried it and I got the results as well. Now I need to add those transformed results to the condition section. I have tried ctx.transform.payload to access the transformed payload but it results a null. So is there anything I am missing when accessing the transformed payload?
Thanks for the quick reply. Is there any way to round the aggregation payload before the condition and compare those rounded data inside the condition?
This is the use case. The average value from the aggregation contains many decimal places (nearly 20) but I need that average value in three decimal places and compare it with another value. This is the reason that I want to round the average value. Please feel free to ask for any clarifications.
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.