[DOCS] Correctly read total hits inside watcher config
Relates to #50611 and #50612
This commit is contained in:
parent
263083b882
commit
277798606b
|
@ -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>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue