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 optional numeric duration output for JSON #1628

Merged
merged 2 commits into from
May 5, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented May 4, 2021

📔 Description

VAST prints values of type duration as human-readable strings when printing JSON, e.g., "5.9h" or "5.2m". For post-processing output, this is very inflexible because it requires custom parsing.

The new option vast.export.json.numeric-durations enables numeric rather than human-readable output.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

File-by-file. Test locally.

@dominiklohmann dominiklohmann added the feature New functionality label May 4, 2021
@dominiklohmann dominiklohmann requested a review from a team May 4, 2021 11:19
VAST prints values of type `duration` as human-readable strings when
printing JSON, e.g., `"5.9h"` or `"5.2m"`. For post-processing output,
this is very inflexible because it requires custom parsing.

The new option `vast.export.json.numeric-durations` enables numeric
rather than human-readable output.
@dominiklohmann dominiklohmann force-pushed the story/ch22913/json-numeric-durations branch from 2665cab to 30a3169 Compare May 4, 2021 11:27
Copy link
Member

@mavam mavam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good to me. Please reduce the integration test baseline to smaller set. A couple of dozens events should suffice here.

changelog/unreleased/features/1628.md Outdated Show resolved Hide resolved
@dominiklohmann
Copy link
Member Author

Please reduce the integration test baseline to smaller set. A couple of dozens events should suffice here.

< 200 for both now.

@dominiklohmann dominiklohmann merged commit 84fdaed into master May 5, 2021
@dominiklohmann dominiklohmann deleted the story/ch22913/json-numeric-durations branch May 5, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants