Skip to content

Commit

Permalink
Add sort parameter to /_ingest/processor/grok.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Nov 22, 2024
1 parent 22bdd5c commit f64c890
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spec/namespaces/ingest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ paths:
description: Returns a list of the built-in patterns.
externalDocs:
url: https://opensearch.org/docs/latest
parameters: []
parameters:
- $ref: '#/components/parameters/ingest.processor_grok::query.s'
responses:
'200':
$ref: '#/components/responses/ingest.processor_grok@200'
Expand Down Expand Up @@ -340,3 +341,10 @@ components:
type: boolean
default: false
style: form
ingest.processor_grok::query.s:
name: s
in: query
description: Sort returned patterns by key name.
schema:
type: boolean
default: false
16 changes: 16 additions & 0 deletions tests/default/ingest/processor/grok.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test retrieving grok processor patterns.
chapters:
- synopsis: Retrieve the patterns included with the grok processor.
path: /_ingest/processor/grok
method: GET
response:
status: 200
- synopsis: Retrieve the patterns included with the grok processor by key name.
path: /_ingest/processor/grok
method: GET
parameters:
s: true
response:
status: 200

0 comments on commit f64c890

Please sign in to comment.