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

Persist a timestamp with events to the index #62

Closed
jzonthemtn opened this issue Feb 23, 2024 · 2 comments
Closed

Persist a timestamp with events to the index #62

jzonthemtn opened this issue Feb 23, 2024 · 2 comments
Assignees

Comments

@jzonthemtn
Copy link
Collaborator

Persist a timestamp with events to the index. There is currently not a timestamp field for the events index.

@jzonthemtn jzonthemtn self-assigned this Feb 23, 2024
@jzonthemtn
Copy link
Collaborator Author

This will require modifying the received JSON for events to add a timestamp field if none is included in the request. How this is done needs some consideration. I would like to have an object model for the events JSON and modify the event that way, but I'm not sure if that will accommodate the schema. Having objects would give easy access to the event properties. Using something like JSONObject is probably the easiest way though.

@jzonthemtn
Copy link
Collaborator Author

Implemented by using jackson JsonNode and ObjectNode to get the timestamp, if any, and set it to the current timestamp if not set.

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

No branches or pull requests

1 participant