-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add multiple config for datasource #361
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
{ | ||
"id": "logs", | ||
"title": "Logs", | ||
"count": 3 | ||
"count": 4 | ||
}, | ||
{ | ||
"id": "metrics", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,8 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"multiple": true | ||
} | ||
], | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
testdata/package/multiple-false-0.0.1/dataset/foo/agent/stream/stream.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foo: bar |
4 changes: 4 additions & 0 deletions
4
testdata/package/multiple-false-0.0.1/dataset/foo/elasticsearch/ingest-pipeline/default.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Pipeline for normalizing envoyproxy logs", | ||
"processors": [] | ||
} |
13 changes: 13 additions & 0 deletions
13
testdata/package/multiple-false-0.0.1/dataset/foo/manifest.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Foo | ||
|
||
# Needs to describe the type of this input | ||
type: logs | ||
|
||
streams: | ||
- input: logs | ||
vars: | ||
- name: paths | ||
required: true | ||
description: Path to log files to be collected | ||
type: text | ||
multi: true |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
format_version: 1.0.0 | ||
|
||
name: multiple-false | ||
description: Tests that multiple can be set to false | ||
version: 0.0.1 | ||
title: Multiple false | ||
categories: ["logs"] | ||
type: integration | ||
|
||
|
||
datasources: | ||
- name: logs | ||
title: Logs datasource | ||
description: Datasource for your log files. | ||
inputs: | ||
- type: logs | ||
multiple: false | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,8 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"multiple": true | ||
} | ||
], | ||
"download": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,8 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"multiple": true | ||
} | ||
], | ||
"download": "/epr/example/example-1.0.0.tar.gz", | ||
|
1 change: 1 addition & 0 deletions
1
testdata/public/package/multiple-false/0.0.1/dataset/foo/agent/stream/stream.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foo: bar |
4 changes: 4 additions & 0 deletions
4
...ublic/package/multiple-false/0.0.1/dataset/foo/elasticsearch/ingest-pipeline/default.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Pipeline for normalizing envoyproxy logs", | ||
"processors": [] | ||
} |
13 changes: 13 additions & 0 deletions
13
testdata/public/package/multiple-false/0.0.1/dataset/foo/fields/stream.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
- name: stream.type | ||
type: constant_keyword | ||
description: > | ||
Stream type | ||
- name: stream.dataset | ||
type: constant_keyword | ||
description: > | ||
Stream dataset. | ||
- name: stream.namespace | ||
type: constant_keyword | ||
description: > | ||
Stream namespace. |
13 changes: 13 additions & 0 deletions
13
testdata/public/package/multiple-false/0.0.1/dataset/foo/manifest.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Foo | ||
|
||
# Needs to describe the type of this input | ||
type: logs | ||
|
||
streams: | ||
- input: logs | ||
vars: | ||
- name: paths | ||
required: true | ||
description: Path to log files to be collected | ||
type: text | ||
multi: true |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"format_version": "1.0.0", | ||
"name": "multiple-false", | ||
"title": "Multiple false", | ||
"version": "0.0.1", | ||
"readme": "/package/multiple-false/0.0.1/docs/README.md", | ||
"license": "basic", | ||
"description": "Tests that multiple can be set to false", | ||
"type": "integration", | ||
"categories": [ | ||
"logs" | ||
], | ||
"requirement": { | ||
"kibana": {}, | ||
"elasticsearch": {} | ||
}, | ||
"assets": [ | ||
"/package/multiple-false/0.0.1/manifest.yml", | ||
"/package/multiple-false/0.0.1/docs/README.md", | ||
"/package/multiple-false/0.0.1/dataset/foo/manifest.yml", | ||
"/package/multiple-false/0.0.1/dataset/foo/fields/stream.yml", | ||
"/package/multiple-false/0.0.1/dataset/foo/agent/stream/stream.yml", | ||
"/package/multiple-false/0.0.1/dataset/foo/elasticsearch/ingest-pipeline/default.json" | ||
], | ||
"datasets": [ | ||
{ | ||
"id": "multiple-false.foo", | ||
"title": "Foo", | ||
"release": "beta", | ||
"type": "logs", | ||
"ingest_pipeline": "default", | ||
"streams": [ | ||
{ | ||
"input": "logs", | ||
"vars": [ | ||
{ | ||
"name": "paths", | ||
"type": "text", | ||
"description": "Path to log files to be collected", | ||
"multi": true, | ||
"required": true, | ||
"show_user": false | ||
} | ||
] | ||
} | ||
], | ||
"package": "multiple-false", | ||
"path": "foo" | ||
} | ||
], | ||
"datasources": [ | ||
{ | ||
"name": "logs", | ||
"title": "Logs datasource", | ||
"description": "Datasource for your log files.", | ||
"inputs": [ | ||
{ | ||
"type": "logs", | ||
"streams": [ | ||
{ | ||
"input": "logs", | ||
"vars": [ | ||
{ | ||
"name": "paths", | ||
"type": "text", | ||
"description": "Path to log files to be collected", | ||
"multi": true, | ||
"required": true, | ||
"show_user": false | ||
} | ||
], | ||
"dataset": "multiple-false.foo", | ||
"template": "foo: bar\n" | ||
} | ||
] | ||
} | ||
], | ||
"multiple": false | ||
} | ||
], | ||
"download": "/epr/multiple-false/multiple-false-0.0.1.tar.gz", | ||
"path": "/package/multiple-false/0.0.1" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
format_version: 1.0.0 | ||
|
||
name: multiple-false | ||
description: Tests that multiple can be set to false | ||
version: 0.0.1 | ||
title: Multiple false | ||
categories: ["logs"] | ||
type: integration | ||
|
||
|
||
datasources: | ||
- name: logs | ||
title: Logs datasource | ||
description: Datasource for your log files. | ||
inputs: | ||
- type: logs | ||
multiple: false | ||
|
This file contains 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
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.
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.
nit: missing reference to PR?
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.
fixed