-
Notifications
You must be signed in to change notification settings - Fork 1
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
Consolidate series by step for divideSeries #111
Conversation
This comment has been minimized.
This comment has been minimized.
expr/helper/align.go
Outdated
@@ -379,6 +379,21 @@ func ScaleSeries(args []*types.MetricData) []*types.MetricData { | |||
return args | |||
} | |||
|
|||
func ConsolidateSeriesByStepForDivision(numerator, denominator *types.MetricData) (*types.MetricData, *types.MetricData) { |
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.
Nit: perhaps change the name of this, as in seriesList functions we are using it for not just division, but multiply, diff, pow, etc. I would suggest 'ConsoliateSeriesListsByStep' or something along those lines
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.
Looks good to me! Thanks for the refactoring of the aligning series code
28305e7
to
e194d74
Compare
Go coverage report: Click to expand.
Go lint report: No issues found. 😎 |
This PR expands the fix in #99 to
divideSeries
.