I have configured the following action for a watcher
"actions" : {
"watcher_email" : {
"email": {
"account": "outlook_account",
"to": "'<testUser@domain.com>'",
"subject" : "Watcher Fatal Alert: {{ctx.payload.hits.total}} log entries --- severity: Fatal",
"body" : "Watcher \"{{ctx.watch_id}}\" Encountered {{ctx.payload.hits.total}} log entries, see attached data",
"attachments" : {
"incidentData.json" : {
"data" : {
"format" : "json"
}
}
},
"priority" : "high"
}
}
}
and am getting the following error
{
"error": {
"root_cause": [1]
0: {
"type": "parse_exception"
"reason": "could not parse [email] action [inlined/watcher_email]. unexpected token [START_OBJECT]"
}-
"type": "parse_exception"
"reason": "could not parse [email] action [inlined/watcher_email]. unexpected token [START_OBJECT]"
}-
"status": 400
}
without the attachment element, the email action parses and executes with no errors
would appreciate your help