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

Support plugins defining the EventKey in plugin configurations #4635

Merged

Conversation

dlvenable
Copy link
Member

Description

Data Prepper core can now parse EventKey objects for plugin configurations. Additionally, validation using @NotEmpty also works.

Specific changes:

  • Adds a deserializer for EventKey
  • Adds a custom validator for the @NotEmpty annotation with EventKey.
  • Adds a EventKeyConfiguration annotation that allows plugin authors to configure how they will use the EventKey.
  • Integration test updates.

Issues Resolved

N/A, but this enhances the work done for #1916.

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…sses. Data Prepper will deserialize the EventKey from the pipeline configuration and validate @notempty validations. Builds on the opensearch-project#1916.

Signed-off-by: David Venable <dlv@amazon.com>
@dlvenable
Copy link
Member Author

See #4636 for how we can use this in some processors. Also, the integration tests I added show how to use it.

@dlvenable dlvenable merged commit 7d16ea1 into opensearch-project:main Jun 19, 2024
39 of 47 checks passed
@dlvenable dlvenable deleted the 1916-event-key-config-support branch October 22, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants