I am working on a watcher that create watcher depending an index. I use for that a weebhook call in the watcher.
Problem:
the webhook call need the use of """ for the body part:
"webhook": {
"scheme": "https",
"host": "xxxx",
"port": xxxx,
"method": "put",
"path": "_watcher/watch/{{ctx.payload._source.watchername}}",
"params": {},
"headers": {},
"body" : """ xxxxxxxxxxxxxxxxxxxxxxxxx """"
}
}
}
The problem is that in the body send to the weebhook I also have a body with a sequence of """:
"webhook": {
"scheme": "https",
"host": "xxxx",
"port": xxxx,
"method": "put",
"path": "_watcher/watch/{{ctx.payload._source.watchername}}",
"params": {},
"headers": {},
"body" : """ xxxx {body : """ zzzzzz """ } """"
}
}
}
Well, of course the """ inside the second body interfer with the first one...
check in the forum, in the language ref, I haven't been able to find any solution.
Escaping the " in the second body cal, using \"\"\" does not work. I tried using ', or `, it did not work either.
As anybody a solution for that?