-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * Fields * Basic spec * Side files covered * custom_logs covered * All input packages are covered * Fix: changelog * Address PR comments * Harden limits * Refer to integration's changelog * Add Version field to Package * Fix tests * Fix: error message * Fix changelog * Update code/go/internal/validator/folder_spec.go Co-authored-by: Josh Dover <[email protected]> * Log warning * Spec testing * Fix: beta and ga as valid levels * Use switch * Use beta * Use technical previews * Adjust conditions * Add test case * Fix Co-authored-by: Josh Dover <[email protected]>
- Loading branch information
Showing
19 changed files
with
217 additions
and
29 deletions.
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
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
## | ||
## Describes the specification for the input package's main manifest.yml file | ||
## | ||
spec: | ||
# Everything under here follows JSON schema (https://json-schema.org/), written as YAML for readability | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
format_version: | ||
description: The version of the package specification format used by this package. | ||
$ref: "../integration/manifest.spec.yml#/definitions/version" | ||
name: | ||
description: The name of the package. | ||
type: string | ||
pattern: '^[a-z0-9_]+$' | ||
examples: | ||
- apache | ||
title: | ||
description: The title of the package. | ||
type: string | ||
examples: | ||
- Apache | ||
description: | ||
description: A longer description of the package. | ||
type: string | ||
examples: | ||
- Apache Integration | ||
version: | ||
description: The version of the package. | ||
$ref: "../integration/manifest.spec.yml#/definitions/version" | ||
license: | ||
description: The license under which the package is being released. | ||
type: string | ||
enum: | ||
- basic | ||
default: basic | ||
examples: | ||
- basic | ||
type: | ||
description: The type of package. | ||
type: string | ||
enum: | ||
- input | ||
examples: | ||
- input | ||
categories: | ||
$ref: "../integration/manifest.spec.yml#/definitions/categories" | ||
conditions: | ||
description: Conditions under which this package can be installed. | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
kibana: | ||
description: Kibana conditions | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
version: | ||
type: string | ||
description: Kibana versions compatible with this package. | ||
examples: | ||
- ">=7.9.0" | ||
policy_templates: | ||
description: List of policy templates offered by this package. | ||
type: array | ||
items: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
name: | ||
description: Name of policy template. | ||
type: string | ||
examples: | ||
- apache | ||
type: | ||
description: Type of data stream | ||
type: string | ||
enum: | ||
- metrics | ||
- logs | ||
- synthetics | ||
- traces | ||
examples: | ||
- metrics | ||
title: | ||
description: Title of policy template. | ||
type: string | ||
examples: | ||
- Apache logs and metrics | ||
description: | ||
description: Longer description of policy template. | ||
type: string | ||
examples: | ||
- Collect logs and metrics from Apache instances | ||
icons: | ||
$ref: "../integration/manifest.spec.yml#/definitions/icons" | ||
screenshots: | ||
$ref: "../integration/manifest.spec.yml#/definitions/screenshots" | ||
vars: | ||
$ref: "../integration/data_stream/manifest.spec.yml#/definitions/vars" | ||
input: | ||
type: string | ||
examples: | ||
- aws/metrics | ||
- s3 | ||
- file | ||
template_path: | ||
description: "Path to Elasticsearch index template for stream." | ||
type: string | ||
required: | ||
- name | ||
- title | ||
- description | ||
- type | ||
- input | ||
icons: | ||
$ref: "../integration/manifest.spec.yml#/definitions/icons" | ||
screenshots: | ||
$ref: "../integration/manifest.spec.yml#/definitions/screenshots" | ||
vars: | ||
$ref: "../integration/data_stream/manifest.spec.yml#/definitions/vars" | ||
owner: | ||
$ref: "../integration/manifest.spec.yml#/definitions/owner" | ||
required: | ||
- format_version | ||
- name | ||
- title | ||
- description | ||
- version | ||
- type | ||
- owner |
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,43 @@ | ||
## | ||
## Entrypoint of "input packages" specification. | ||
## The specification is considered "beta" at the moment, so it may change until we release it as GA. | ||
## | ||
## Describes the folders and files that make up a package. | ||
## | ||
spec: | ||
additionalContents: true | ||
totalContentsLimit: 65535 | ||
totalSizeLimit: 50MB | ||
sizeLimit: 30MB | ||
configurationSizeLimit: 5MB | ||
relativePathSizeLimit: 3MB | ||
release: beta | ||
contents: | ||
- description: The main package manifest file | ||
type: file | ||
contentMediaType: "application/x-yaml" | ||
sizeLimit: 5MB | ||
name: "manifest.yml" | ||
required: true | ||
$ref: "./manifest.spec.yml" | ||
- description: The package's CHANGELOG file | ||
type: file | ||
contentMediaType: "application/x-yaml" | ||
name: "changelog.yml" | ||
required: true | ||
$ref: "../integration/changelog.spec.yml" | ||
- description: Folder containing agent-related definitions | ||
type: folder | ||
name: agent | ||
required: true | ||
$ref: "../integration/agent/spec.yml" | ||
- description: Folder containing documentation for the package | ||
type: folder | ||
name: docs | ||
required: true | ||
$ref: "../integration/docs/spec.yml" | ||
- description: Folder containing field definitions | ||
type: folder | ||
name: fields | ||
required: true | ||
$ref: "../integration/data_stream/fields/spec.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,14 @@ | ||
spec: | ||
additionalContents: false | ||
contents: | ||
- description: Folder containing input definitions | ||
type: folder | ||
name: stream | ||
required: true | ||
additionalContents: false | ||
contents: | ||
- description: Folder containing agent stream definitions | ||
type: file | ||
sizeLimit: 2MB | ||
pattern: '^.+.yml.hbs$' | ||
required: true |
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