Skip to content

Commit deaef45

Browse files
committed
Correct override based on request order
1 parent cfe41d9 commit deaef45

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

x-pack/docs/en/rest-api/watcher/put-watch.asciidoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ A watch has the following fields:
6969
| `throttle_period` | The minimum time between actions being run, the default
7070
for this is 5 seconds. This default can be changed in the
7171
config file with the setting
72-
`xpack.watcher.throttle.period.default_period`. If
73-
provided, this value overrides the
74-
`throttle_period_in_millis` value.
72+
`xpack.watcher.throttle.period.default_period`. If both
73+
this value and the `throttle_period_in_millis` parameter
74+
are specified, {watcher} uses the last parameter
75+
included in the request.
7576

7677
| `throttle_period_in_millis` | Minimum time in milliseconds between actions
77-
being run. Defaults to `5000`. If provided, the
78-
`throttle_period`` value overrides this
79-
parameter.
78+
being run. Defaults to `5000`. If both this
79+
value and the `throttle_period` parameter are
80+
specified, {watcher} uses the last parameter
81+
included in the request.
8082

8183
|======
8284

0 commit comments

Comments
 (0)