-
Notifications
You must be signed in to change notification settings - Fork 217
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
Data Prepper Event Json Codec #4404
Comments
@graytaylor0 , Do you expect for the following to be JSON or serialized JSON strings?
Also, why not just use Tags are part of the event metadata. Why have them at the top-level when they could be expressed in the metadata? |
I expect these to be JSON, not serialized JSON strings
No particular reason to prefix with And yes we could consolidate all the metadata into
We should be able to use Jackson to serialize and deserialize the Event metadata here as well. One thought though is should the |
I like that newer model.
I think we should make the We could possibly add a new attribute to hold the original time received if we wanted. |
@graytaylor0 Is this really needed? We already allow including |
Is your feature request related to a problem? Please describe.
A Data Prepper Event currently includes the Event data (which is the user's data), but Data Prepper Events also have other attributes, for example the Event Metadata or Event tags, and this could grow in the future.
Describe the solution you'd like
A standard
codec
that can be used to represent a full Data Prepper Event, including the metadata and tags. I am proposingas the identifier for this codec.
As an input codec for use in sources like S3, the event_json would be read in as a Data Prepper Event, where the data is written to the Event data, and the metadata to the Event Metadata and tags are written to the Event tags.
As an output codec, the structure of the json representing the full Event would contain something like the following format
Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: