stack kb alerting-v2 patch-alerting-v2-rules-id cli command

Auth required
elastic stack kb alerting-v2 patch-alerting-v2-rules-id --id <id> [options]
		

Update a rule

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--id string required
The identifier for the rule.
--artifacts string[]

Artifacts attached to the rule, each shaped as { id, type, data }. data is a type-specific object (for example a runbook may carry content, a dashboard may carry dashboardId). Per-type shape is validated by the artifact-type registry when the type is registered; unregistered types pass through with envelope bounds only.

Repeatable: pass --artifacts multiple times to supply more than one value

--grouping string
--metadata string
--no-data-strategy string
--query string
--recovery-strategy string
--schedule string
--state-transition string
--time-field string
--version string
The current version of the rule, used for optimistic concurrency control.
--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--json

output as JSON