alerting
Get the Elasticsearch query for a rule
Spaces method and path for this operation:
<div><span class="operation-verb get">get</span> <span class="operation-path">/s/{space_id}/api/alerting/rule/{id}/query_inspector</span></div>Refer to Spaces for more information.
Returns the Elasticsearch query that a rule executes, and optionally its response.
get/api/alerting/rule/{id}/query_inspector
Path parameters
idstring required
The identifier for the rule.
Query parameters
mode'build' | 'execute'
The inspection mode. Use "build" to return only the query, or "execute" to run the query and include the response.
alert_idstring
The alert document ID. When provided, the query inspector uses the evaluation time range from the alert instead of the current time.
Response
Indicates a successful call.