-
Notifications
You must be signed in to change notification settings - Fork 3
Implement Quantity types in logical meter streams
#11
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
856981e
Update resampler time at the start of resampling
shsms c4d4abb
Rename timer field to resampler_timer for clarity
shsms bb82ad5
Refactor resampling logic into a dedicated function
shsms 196e222
Add `kind` method to `Error` for retrieving error kind
shsms e260df0
Refactor resampler cleanup
shsms fa24e91
Rename `do_next` to `evaluate_formulas`
shsms 7b666b6
Add quantity module with support for various physical quantities
shsms 98613ed
Add tests for the quantity types
shsms ab13386
Make `Sample` struct generic over value type
shsms aa2d311
Add QuantityType to Metric trait as an associated type
shsms 112c200
Update Formula trait to support generic Quantity type
shsms 0b61acb
Update LogicalMeterFormula to support generic Quantity type
shsms 7201570
Update `evaluate_formulas` to support generic transformation
shsms fd57f5e
Add TypedFormulaResponseSender enum and TryFrom implementation
shsms 9ce335f
Add `Formulas` struct to manage logical meter formulas
shsms cb25391
Change log level to debug for missing metric data in LogicalMeterActor
shsms 082ee30
Refactor resampler initialization into a dedicated method
shsms af95e6e
Implement `Quantity` types in logical meter streams
shsms 254f0bf
Remove invalid metric checks from formula operations
shsms a181981
Remove default generic type for `Formula` and `Sample`
shsms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably you have a good reason not to use
async_traithere, but I tend to find these desugared async return types hard to read.Can you maybe help me understand the decision against
async_trait? Is it "fewer dependencies" (which is perfectly valid)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but eventually this wasn't enough and we needed the dyn Future produced by async_trait, because of tokio requirements. So this changes in the next PR.