Hello, I've been trying to add a new watcher that will email a report to multiple users, however after I've added the watch (either via web UI or curl) and try to run it, I get the following error "password is a required option".
Looking at the watch after I've inserted it I noticed the password filed is gone (under email attachment).
I've also tried to edit the watch via web UI after adding it, and after I hit 'save' the password is gone again.
Here is my watch:
{
"trigger" : {
"schedule": {
"interval": "1h"
}
},
"actions" : {
"email_user" : {
"email": {
"to": "alex@some_mail.com",
"subject": "Some Report",
"attachments" : {
"report.pdf" : {
"reporting" : {
"url": "http://0.0.0.0:5601/api/reporting/generate/dashboard/some_report?_g=(time:(from:now-30d%2Fd,mode:quick,to:now))",
"retries":6,
"interval":"1s",
"auth":{
"basic":{
"username":"some_user",
"password":"some_pass"
}
}
}
}
}
}
}
}
}
And here the watch after I've added it to elastic:
{
"trigger": {
"schedule": {
"interval": "1h"
}
},
"input": {
"none": {}
},
"condition": {
"always": {}
},
"actions": {
"email_user": {
"email": {
"profile": "standard",
"attachments": {
"report.pdf": {
"reporting": {
"url": "http://0.0.0.0:5601/api/reporting/generate/dashboard/some_report?_g=(time:(from:now-30d%2Fd,mode:quick,to:now))",
"retries": 6,
"interval": "1s",
"auth": {
"basic": {
"username": "some_user"
}
}
}
}
},
"to": [
"alex@some_mail.com"
],
"subject": "Some Report"
}
}
}
}