JSON Body payload for the webhook connector in Alerts & Actions (#89253)

* fixes https://github.com/elastic/kibana/issues/74449


Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
This commit is contained in:
Rashmi Kulkarni 2021-01-26 14:20:42 -08:00 committed by GitHub
parent 2a9a9305ee
commit 20f32d506f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,4 +72,17 @@ Password:: An optional password. If set, HTTP basic authentication is used. Cur
Webhook actions have the following properties:
Body:: A json payload sent to the request URL.
Body:: A JSON payload sent to the request URL. For example:
+
[source,text]
--
{
"short_description": "{{context.rule.name}}",
"description": "{{context.rule.description}}",
...
}
--
Mustache template variables (the text enclosed in double braces, for example, `context.rule.name`) have
their values escaped, so that the final JSON will be valid (escaping double quote characters).
For more information on Mustache template variables, refer to <<defining-alerts-actions-details>>.