mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Add note to POST /api/v1/fleet/queries/run about required parameter for running live query as an observer (#2028)
This commit is contained in:
parent
db83c40d45
commit
c5bc6b8128
@ -2578,7 +2578,7 @@ After the query has been initiated, [get results via WebSocket](#retrieve-live-q
|
||||
| Name | Type | In | Description |
|
||||
| -------- | ------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| query | string | body | The SQL if using a custom query. |
|
||||
| query_id | integer | body | The saved query (if any) that will be run. The `observer_can_run` property on the query effects which targets are included. |
|
||||
| query_id | integer | body | The saved query (if any) that will be run. Required if running query as an observer. The `observer_can_run` property on the query effects which targets are included. |
|
||||
| selected | object | body | **Required.** The desired targets for the query specified by ID. This object can contain `hosts`, `labels`, and/or `teams` properties. See examples below. |
|
||||
|
||||
One of `query` and `query_id` must be specified.
|
||||
|
Loading…
Reference in New Issue
Block a user