Skip to content
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 dataset_types to package info #511

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Validate version consistency. [#510](https://github.com/elastic/package-registry/pull/510)
* Remove package code generator. [#513](https://github.com/elastic/package-registry/pull/513)
* Added support for ecs style validation for dataset fields. [#520](https://github.com/elastic/package-registry/pull/520)
* Add /types endpoint to retrieve list of types and the number related to it. [#511](https://github.com/elastic/package-registry/pull/511)

### Deprecated

Expand Down
5 changes: 4 additions & 1 deletion docs/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,8 @@
}
],
"download": "/epr/example/example-1.0.0.tar.gz",
"path": "/package/example/1.0.0"
"path": "/package/example/1.0.0",
"dataset_types": [
"logs"
]
}
25 changes: 22 additions & 3 deletions docs/api/search-all.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[
{
"description": "Package with data sources",
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
},
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"dataset_types": [
"logs"
],
"description": "Tests if no pipeline is set thhat it defaults to the default pipeline",
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz",
"name": "default_pipeline",
"path": "/package/default_pipeline/0.0.2",
Expand All @@ -18,6 +25,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests the registry validations works for dataset fields using the ecs style format",
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz",
"name": "ecs_style_dataset",
Expand All @@ -36,6 +46,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand All @@ -54,6 +67,9 @@
"version": "1.0.0"
},
{
"dataset_types": [
"logs"
],
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz",
"name": "multiple_false",
Expand All @@ -63,6 +79,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"name": "no_stream_configs",
Expand Down
25 changes: 22 additions & 3 deletions docs/api/search-category-logs.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[
{
"description": "Package with data sources",
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
},
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"dataset_types": [
"logs"
],
"description": "Tests if no pipeline is set thhat it defaults to the default pipeline",
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz",
"name": "default_pipeline",
"path": "/package/default_pipeline/0.0.2",
Expand All @@ -18,6 +25,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests the registry validations works for dataset fields using the ecs style format",
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz",
"name": "ecs_style_dataset",
Expand All @@ -27,6 +37,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand All @@ -36,6 +49,9 @@
"version": "1.0.0"
},
{
"dataset_types": [
"logs"
],
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz",
"name": "multiple_false",
Expand All @@ -45,6 +61,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"name": "no_stream_configs",
Expand Down
3 changes: 3 additions & 0 deletions docs/api/search-category-metrics.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand Down
75 changes: 75 additions & 0 deletions docs/api/search-datasetType-logs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[
{
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
},
{
"dataset_types": [
"logs"
],
"description": "Tests if no pipeline is set thhat it defaults to the default pipeline",
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz",
"name": "default_pipeline",
"path": "/package/default_pipeline/0.0.2",
"title": "Default pipeline Integration",
"type": "integration",
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests the registry validations works for dataset fields using the ecs style format",
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz",
"name": "ecs_style_dataset",
"path": "/package/ecs_style_dataset/0.0.1",
"title": "Default pipeline Integration",
"type": "integration",
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
"type": "integration",
"version": "1.0.0"
},
{
"dataset_types": [
"logs"
],
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz",
"name": "multiple_false",
"path": "/package/multiple_false/0.0.1",
"title": "Multiple false",
"type": "integration",
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"name": "no_stream_configs",
"path": "/package/no_stream_configs/1.0.0",
"title": "No Stream configs",
"type": "integration",
"version": "1.0.0"
}
]
15 changes: 15 additions & 0 deletions docs/api/search-datasetType-metrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
}
]
22 changes: 19 additions & 3 deletions docs/api/search-kibana652.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[
{
"description": "Package with data sources",
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
},
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"dataset_types": [
"logs"
],
"description": "Tests if no pipeline is set thhat it defaults to the default pipeline",
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz",
"name": "default_pipeline",
"path": "/package/default_pipeline/0.0.2",
Expand All @@ -18,6 +25,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests the registry validations works for dataset fields using the ecs style format",
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz",
"name": "ecs_style_dataset",
Expand All @@ -36,6 +46,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz",
"name": "multiple_false",
Expand All @@ -45,6 +58,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"name": "no_stream_configs",
Expand Down
25 changes: 22 additions & 3 deletions docs/api/search-kibana721.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[
{
"description": "Package with data sources",
"dataset_types": [
"logs",
"metrics"
],
"description": "Package with data source",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
"title": "Default data source Integration",
"type": "integration",
"version": "1.0.0"
},
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"dataset_types": [
"logs"
],
"description": "Tests if no pipeline is set thhat it defaults to the default pipeline",
"download": "/epr/default_pipeline/default_pipeline-0.0.2.tar.gz",
"name": "default_pipeline",
"path": "/package/default_pipeline/0.0.2",
Expand All @@ -18,6 +25,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "Tests the registry validations works for dataset fields using the ecs style format",
"download": "/epr/ecs_style_dataset/ecs_style_dataset-0.0.1.tar.gz",
"name": "ecs_style_dataset",
Expand All @@ -27,6 +37,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand All @@ -45,6 +58,9 @@
"version": "1.0.0"
},
{
"dataset_types": [
"logs"
],
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple_false/multiple_false-0.0.1.tar.gz",
"name": "multiple_false",
Expand All @@ -54,6 +70,9 @@
"version": "0.0.1"
},
{
"dataset_types": [
"logs"
],
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"name": "no_stream_configs",
Expand Down
3 changes: 3 additions & 0 deletions docs/api/search-package-example-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"version": "0.0.2"
},
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand Down
3 changes: 3 additions & 0 deletions docs/api/search-package-example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[
{
"dataset_types": [
"logs"
],
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"name": "example",
Expand Down
Loading