Hi,
The objective is to send multiple email attachments to multiple groups of recipients from a single watcher script.
I want to achieve the below but getting error.
"actions": {
"email_admin": {
"email": {
"profile": "standard",
"attachments": {
"dashboard1.pdf": {
"reporting": {
"url": "http://xxx.xx.x.xx:5601/s/alerting/api/reporting/generate/printablePdf?...dashboard1",
"auth": {
"basic": {
"username": "elastic",
"password": "pass"
}
}
}
}
},
"from": "from_email@domain.com",
"to": ["abc@xyz.com,bcd@xyz.com"],
"subject": "trial - dashboard 1",
"body": {
"text": "Please find the attached"
}
},
"email": {
"profile": "standard",
"attachments": {
"dashboard2.pdf": {
"reporting": {
"url": "http://xxx.xx.x.xx:5601/s/alerting/api/reporting/generate/printablePdf?...dashboard2",
"auth": {
"basic": {
"username": "elastic",
"password": "pass"
}
}
}
}
},
"from": "from_email@domain.com",
"to": ["mno@xyz.com,cdo@xyz.com"],
"subject": "trial - dashboard 2",
"body": {
"text": "Please find the attached"
}
}
}
}
I know that the error is because of the two email
blocks under email_admin
which I have placed to achieve the goal but was unsuccessful.
Please advise me what are the changes need to be done under the actions
block to achieve what I needed.
Regards,
Souvik