Hi,
In my Watcher, I setup a template below to send out an email base on the search condition, it works. However, I have different Indices and Tags that I want to put all together in one Watcher. For example,
- If IndexA and TagA have no record, send email with Subject "No IndexA and TagA."
- If IndexA and TagB have no record, send email with Subject "No IndexA and TagB."
- If IndexB and TagC have no record, send email with Subject "No IndexB and TagC."
- If IndexB and TagD have no record, send email with Subject "No IndexB and TagD."
I have tried to add another "input", "condition" and "email" section after the template, but it does not work, how can I accomplish my requirements? Do I need to create each requirement for each Watcher? Please advise.
{
"trigger": {
"schedule": {
...
},
"input": {
"search": {
...
},
"condition": {
...
},
"actions": {
"send_email": {
"email": {
...
}
}
}