From 277798606b19a36b26e88310e675f5fb117334d8 Mon Sep 17 00:00:00 2001 From: Florian Kelbert Date: Tue, 14 Jan 2020 11:28:19 +0100 Subject: [PATCH] [DOCS] Correctly read total hits inside watcher config Relates to #50611 and #50612 --- x-pack/docs/en/watcher/actions/email.asciidoc | 2 +- x-pack/docs/en/watcher/condition/compare.asciidoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/docs/en/watcher/actions/email.asciidoc b/x-pack/docs/en/watcher/actions/email.asciidoc index adda53b810d..373904af066 100644 --- a/x-pack/docs/en/watcher/actions/email.asciidoc +++ b/x-pack/docs/en/watcher/actions/email.asciidoc @@ -31,7 +31,7 @@ the watch payload in the email body: "email" : { <2> "to" : "username@example.org", <3> "subject" : "Watcher Notification", <4> - "body" : "{{ctx.payload.hits.total.value}} error logs found" <5> + "body" : "{{ctx.payload.hits.total}} error logs found" <5> } } } diff --git a/x-pack/docs/en/watcher/condition/compare.asciidoc b/x-pack/docs/en/watcher/condition/compare.asciidoc index f6fd06a11be..466cbe05ef6 100644 --- a/x-pack/docs/en/watcher/condition/compare.asciidoc +++ b/x-pack/docs/en/watcher/condition/compare.asciidoc @@ -44,7 +44,7 @@ condition returns `true` if the number of the total hits in the { "condition" : { "compare" : { - "ctx.payload.hits.total.value" : { <1> + "ctx.payload.hits.total" : { <1> "gte" : 5 <2> } }