Documentation: Fix watcher script condition using params

Original commit: elastic/x-pack-elasticsearch@fe6d819d64
This commit is contained in:
Alexander Reelsen 2018-03-16 09:57:29 -07:00
parent bccf988e9d
commit ff725afe01
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ parameter, `result`:
--------------------------------------------------
"condition" : {
"script" : {
"source" : "return result",
"source" : "return params.result",
"lang" : "painless",
"params" : {
"result" : true
@ -113,7 +113,7 @@ threshold:
},
"condition" : {
"script" : {
"source" : "return ctx.payload.hits.total > threshold",
"source" : "return ctx.payload.hits.total > params.threshold",
"params" : {
"threshold" : 5
}