invariance_saved_view_run
Run a stored saved view or an ad-hoc query on Invariance observability data by supplying either saved_view_id or source with spec, and return the result.
Instructions
Run a query and return the result. Pass EITHER saved_view_id OR source+spec (exactly one).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | QuerySpec as a JSON object string. Fields (all optional): fields (string[]), filters ([{"field","op":"eq|neq|in|gt|gte|lt|lte","value"}]), group_by (string), aggregation ("count|sum|avg|min|max|count_distinct"), aggregation_field (string), order_by (string), order_dir ("asc|desc"), limit (int). Example: {"filters":[{"field":"status","op":"eq","value":"open"}],"aggregation":"count"} | |
| source | No | Ad-hoc query source; requires spec. | |
| saved_view_id | No | Run a stored saved view by ID. |