Skip to content

Commit 5985621

Browse files
[9.x & Serverless] Fixed outdated params in template example for Watcher (#3999)
Contributes to #3696 by updating the template example for Watcher in the 9.x and Serverless docs. Corresponding 8.x updates at: elastic/elasticsearch#138326 [Preview](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/3999/explore-analyze/alerts-cases/watcher/input-http#_using_templates_2)
1 parent 053b3f6 commit 5985621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

explore-analyze/alerts-cases/watcher/input-http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ For example, the following snippet uses templates to specify what index to query
142142
"host" : "host.domain",
143143
"port" : 9200,
144144
"path" : "/{{ctx.watch_id}}/_search",
145-
"body" : "{\"query\" : {\"range\": {\"@timestamp\" : {\"from\": \"{{ctx.trigger.triggered_time}}||-5m\",\"to\": \"{{ctx.trigger.triggered_time}}\"}}}}"
145+
"body" : "{\"query\" : {\"range\": {\"@timestamp\" : {\"gte\": \"{{ctx.trigger.triggered_time}}||-5m\",\"lte\": \"{{ctx.trigger.triggered_time}}\"}}}}"
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)