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

Prototype for a new way to handle performance data #119

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RincewindsHat
Copy link
Member

This PR implements my current idea for a new interface for performance data handling.
The main advantages are a reasonable sanity checks for special cases (Inf and Nan), almost having type safety and a reasonable interface for users.

Perfdata value must now be created with new initializer functions (NewPdvInt64, NewPdvUint64andNewPdvFloat64`), which, given a number, will create the corresponding Perfdata Value.

Sadly I could not find a good way to make this generic and with restricted types, so encoding a data type in the initializer it is.

Would be interested to get some feedback on this.

@RincewindsHat
Copy link
Member Author

should close #118

@martialblog martialblog marked this pull request as draft June 27, 2024 12:59
@RincewindsHat
Copy link
Member Author

@martialblog since we did not come up with a better solution until now, should we go down this way?

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.

1 participant