HI @spinscale
Please help me with this
i am using watcher 2.2 with es 2.2.0
Cannot upgrade, complete setup is in this version
I want to send the entire payload in the json format via webhook so that python can recieve it in the json object at the other end, i am using it with basic cluster health example but not able to convert the payload to json format
"condition" : {
"compare" : {
"ctx.payload.status" : { "eq" : "red" }
}
},
"transform" : {
"script" : "return [ body: groovy.json.JsonOutput.toJson(ctx.payload.hits.hits)]"
},
"actions" : {
"my_webhook" : {
"webhook" : {
"scheme" : "http",
"method" : "POST",
"headers" : {
"Content-Type" : "application/json"
},
"host" : "hostnamet",
"port" : 1234,
"path": "/try",
"body" : "data: {{ctx.payload.body}}"
}
}
}
}'
help me with this