-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Support wait_for_status and timeout query params on root endpoint #18377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6034a90
870b8aa
75a1338
804ce9d
265952e
d7b7429
e329a4b
fdf667b
13a1c27
c68ba40
4741401
aec5543
00351c4
ea0bb63
0d765fd
8516f2e
8f0dfea
864f20f
2a54b33
6f1e092
68e3539
fa8816c
e11d22a
596c1e9
537ed6a
a0b51c8
5657d07
405589b
6fdf433
ba52df2
83ebd0b
0081e59
4fabcfc
359d184
d415f65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,77 @@ tags: | |
| # description: | ||
| # url: | ||
| paths: | ||
| /: | ||
| get: | ||
| summary: Gets basic metadata | ||
| description: | | ||
| Shows basic metadata about the running logstash service. This includes build info, pipeline info and the service's status. | ||
| operationId: root | ||
| tags: | ||
| - root | ||
| parameters: | ||
| - name: wait_for_status | ||
| in: query | ||
| required: false | ||
| schema: | ||
| type: string | ||
| description: One of green, yellow or red. Will wait (until the timeout provided) until the status of the service changes to the one provided or better, i.e. green > yellow > red. The query param, timeout, is required when this query param is provided. | ||
| - name: timeout | ||
| in: query | ||
| required: false | ||
| schema: | ||
| type: string | ||
| description: Period to wait for the status to reach the requested target status. If the target status is not reached before the timeout expires, the request returns status code 503. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Nit) I know the original ES docs don't have it, but specifying the unit here might be a useful clarification |
||
| - $ref: "#/components/parameters/pretty" | ||
| responses: | ||
| '200': | ||
| description: Indicates a successful call | ||
| content: | ||
| application/json: | ||
| schema: | ||
| - type: object | ||
| properties: | ||
| host: | ||
| type: string | ||
| version: | ||
| type: string | ||
| http_address: | ||
| type: string | ||
| id: | ||
| type: string | ||
| name: | ||
| type: string | ||
| ephemeral_id: | ||
| type: string | ||
| snapshot: | ||
| type: string | ||
| status: | ||
| type: string | ||
| pipeline: | ||
| type: object | ||
| properties: | ||
| workers: | ||
| type: integer | ||
| batch_size: | ||
| type: integer | ||
| batch_delay: | ||
| type: integer | ||
| example: | ||
| host: "logstash-pipelines.example.com" | ||
| version: "9.3.0" | ||
| http_address: "127.0.0.1:9600" | ||
| id: "58df6f7c-eb5c-5d42-bc20-c7b22779aa12" | ||
| name: "logstash-pipelines" | ||
| ephermeral_id: "59df6f6c-eb5c-4d42-bc20-c7b44779aa12" | ||
| snapshot: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Determine what an example value would be here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this still need to be done? |
||
| status: "green" | ||
| pipeline: | ||
| workers: 10 | ||
| batch_size: 125 | ||
| batch_delay: 50 | ||
| x-metaTags: | ||
| - content: Logstash | ||
| name: product_name | ||
| /_node/jvm: | ||
| get: | ||
| summary: Gets node-level JVM info | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to external documentation, as do the ES docs