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 services field into package manifest.yml #125

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
2 changes: 1 addition & 1 deletion code/go/internal/spec/statik.go

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions code/go/internal/validator/test/packages/good/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ version: 0.1.2
release: beta
conditions:
kibana.version: '^7.9.0'
services:
- name: aws_ec2
title: AWS EC2
release: beta
description: AWS EC2 Integration
icons:
- src: /img/logo_aws_ec2.svg
title: logo aws ec2
size: 32x32
type: image/svg+xml
data_streams:
- ec2_logs
- ec2_metrics
policy_templates:
- name: apache
title: Apache logs and metrics
Expand Down
4 changes: 3 additions & 1 deletion versions/1/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@
- description: Add `alias` type to fields spec.
type: enhancement
link: https://github.com/elastic/package-spec/pull/120

- description: Add services field into package manifest.yml
type: enhancement
link: https://github.com/elastic/package-spec/pull/125
68 changes: 68 additions & 0 deletions versions/1/manifest.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,74 @@ spec:
type: string
required:
- github
services:
description: List of services offered by this package.
type: array
items:
type: object
additionalProperties: false
properties:
name:
description: Name of the service.
type: string
examples:
- aws_ec2
title:
description: Title of the service.
type: string
examples:
- AWS EC2
release:
description: The stability of the service.
type: string
enum:
- experimental
- beta
- ga
examples:
- beta
description:
description: Longer description of the service.
type: string
examples:
- Collect logs and metrics from AWS EC2 instances
icons:
description: List of icons for this service.
type: array
items:
type: object
additionalProperties: false
properties:
src:
description: Relative path to the icon's image file.
type: string
format: relative-path
examples:
- "/img/logo_aws_ec2.svg"
title:
description: Title of icon.
type: string
examples:
- "AWS EC2 Logo"
size:
description: Size of the icon.
type: string
examples:
- "32x32"
type:
description: MIME type of the icon image file.
type: string
examples:
- "image/svg+xml"
required:
- src
data_streams:
description: List of data stream names supported for the service.
type: array
items:
type: string
examples:
- "ec2_logs"
required:
- format_version
- name
Expand Down