[ingest] Creates the simulate api route#6121
Merged
Bargs merged 9 commits intoelastic:feature/ingestfrom Mar 9, 2016
Merged
Conversation
d6099ae to
d209809
Compare
Contributor
|
API document needs to be snake cased to follow Kibana API conventions as discussed in #5429. |
Contributor
|
@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
Contributor
|
Waiting on feedback here: BigFunger#6 |
PR Review Updates
Contributor
Author
|
link to ingest documentation: |
Bargs
pushed a commit
that referenced
this pull request
Mar 9, 2016
[ingest] Creates the simulate api route
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.