Loading

stack es watcher put-watch cli command

Auth required Idempotent Scope: global
elastic stack es watcher put-watch --id <id> [options]
		

Create or update a watch.

--id string required
The identifier for the watch.
--[no-]active
The initial state of the watch. The default value is true, which means the watch is active by default.
--if-primary-term number
Only update the watch if the last operation that has changed the watch has the specified primary term
--if-seq-no number
Only update the watch if the last operation that has changed the watch has the specified sequence number
--version number
Explicit version number for concurrency control
--actions string
The list of actions that will be run if the condition matches.
--condition string
The condition that defines if the actions should be run.
--input string
The input that defines the input that loads the data for the watch.
--metadata string
Metadata JSON that will be copied into the history entries.
--throttle-period string
The minimum time between actions being run. The default is 5 seconds. This default can be changed in the config file with the setting xpack.watcher.throttle.period.default_period. If both this value and the throttle_period_in_millis parameter are specified, Watcher uses the last parameter included in the request.
--throttle-period-in-millis string
Minimum time in milliseconds between actions being run. Defaults to 5000. If both this value and the throttle_period parameter are specified, Watcher uses the last parameter included in the request.
--transform string
The transform that processes the watch payload to prepare it for the watch actions.
--trigger string
The trigger that defines when the watch should run.
--input-file string
path to a JSON file to use as command input
-V --[no-]version
Print the Elastic CLI version
--config-file string
path to a config file (default: ~/.elasticrc.yml)
--use-context string
override the active context from the config file
--command-profile string
restrict available commands to a deployment profile (serverless, stack, default)
--[no-]json
output as JSON
--output-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--[no-]dry-run

validate all inputs and exit without performing any action (preview changes without applying them)