[DOCS] Correctly read total hits inside watcher config

Relates to #50611 and #50612
This commit is contained in:
Florian Kelbert 2020-01-14 11:28:19 +01:00 committed by Martijn van Groningen
parent 263083b882
commit 277798606b
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ the watch payload in the email body:
"email" : { <2> "email" : { <2>
"to" : "username@example.org", <3> "to" : "username@example.org", <3>
"subject" : "Watcher Notification", <4> "subject" : "Watcher Notification", <4>
"body" : "{{ctx.payload.hits.total.value}} error logs found" <5> "body" : "{{ctx.payload.hits.total}} error logs found" <5>
} }
} }
} }

View File

@ -44,7 +44,7 @@ condition returns `true` if the number of the total hits in the
{ {
"condition" : { "condition" : {
"compare" : { "compare" : {
"ctx.payload.hits.total.value" : { <1> "ctx.payload.hits.total" : { <1>
"gte" : 5 <2> "gte" : 5 <2>
} }
} }