stack kb alerting get-alerting-rule-id-query-inspector cli command
Auth required
Idempotent
Scope: global
elastic stack kb alerting get-alerting-rule-id-query-inspector \
--id <id> \
[options]
Get the Elasticsearch query for a rule
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The identifier for the rule.
--modeenum-
The inspection mode. Use "build" to return only the query, or "execute" to run the query and include the response.
Values: build, execute
--alert-idstring- The alert document ID. When provided, the query inspector uses the evaluation time range from the alert instead of the current time.
--input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON