I am trying to create a metadata field of type date to use in input, condition, action : "metadata": { "range_start" : "now-10m" }
In the input it seems to have the desired.
In the action I am trying to use range_start as so: from:{{ctx.metadata.range_start}},mode:absolute,to:{{ctx.trigger.triggered_time}}
but the result is: (from:now-10m,mode:absolute,to:2018-01-11T10:38:27.509Z)
instead of: (from:2018-01-11T10:28:27.509Z,mode:absolute,to:2018-01-11T10:38:27.509Z)
you can try using a script transform in your email action and calculate the time difference using a painless script. This is on top of my head, but should give you a first hint
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.