Skip to content

Commit

Permalink
[DOCS] Correctly read total hits inside watcher config
Browse files Browse the repository at this point in the history
Relates to #50611 and #50612
  • Loading branch information
Florian Kelbert authored and martijnvg committed Jan 14, 2020
1 parent 263083b commit 2777986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/docs/en/watcher/actions/email.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion x-pack/docs/en/watcher/condition/compare.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
}
Expand Down

0 comments on commit 2777986

Please sign in to comment.