Skip to content

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.

2 participants