-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ingest] Creates the simulate api route #6121
[ingest] Creates the simulate api route #6121
Conversation
d6099ae
to
d209809
Compare
API document needs to be snake cased to follow Kibana API conventions as discussed in #5429. |
@BigFunger were you using Postman while developing this, and if so do you happen to have a collection of examples you could share via the share link functionality in Postman? |
…ver concerns from frontend code, and start enforcing snake case in simulate api
Waiting on feedback here: BigFunger#6 |
PR Review Updates
link to ingest documentation: |
[ingest] Creates the simulate api route
Replaces #6071 (1 of 3)
Creates the server-side functionality for node ingest simulate.
Pipeline
The simulate route expects a form payload of a pipeline object in JSON.
Processor
The pipeline object contains an array of one or more processor objects.
Processor Type
The processor types are a co-ordinate scope collection. The client will instantiate an instance of a processor_type to create a Processor object. Each processor type will contain the common structure shown below along with default values for any properties that are important for that processor type. For example, a 'set' processor type needs to know the name of the field that is going to be added 'targetField' and the value of that new field 'value'. The 'split' processor on the other hand needs a 'sourceField' property that holds the name of an existing field, and a 'separator' property that will be used to split the value of the sourceField.
*** It is important that each property of a processor type that is used in getDefinition be set to a value in the processor type. Failing to do so will cause unexpected results in the ui.