i want to iterat list of indices to add them to e-mail alert and to send for every index one -e-mail alert.
action :
"send_email": {
"foreach" : "ctx.payload.list",
"email": {
"profile": "standard",
"priority": "high",
"to": [
"xxxxxxxxxxxxxx@xxxxxxxxxxx"
],
"subject": "[Watcher Notification]",
"body": {
"text": "No data sent to index : {{ctx.payload.list}} last 24h"
}
}
}
},
the watcher send email for every index but in the body the variable : {{ctx.payload.list}} is empty
my question is how to retrieve every element separatly from the list.
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.