Skip to content

Allow duration based settings to be specified as strings e.g. 5m, 6d, 2s, 1h #187

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

Closed
guyboertje opened this issue May 3, 2018 · 0 comments
Assignees

Comments

@guyboertje
Copy link
Contributor

Leverage the LogStash::Util::TimeValue to convert string durations to float seconds.

Needs a special validator.

@guyboertje guyboertje self-assigned this May 3, 2018
guyboertje pushed a commit that referenced this issue Jun 13, 2018
* add string based time duration support.

* redo the returned object as a Struct with a `to_a` method.

Fixes #187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant