-
Notifications
You must be signed in to change notification settings - Fork 453
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
[query] Implemented the Graphite useSeriesAbove
function
#2587
Conversation
…into twahle-moving-min
…into twahle-moving-min
useSeriesAbove
function
@@ -150,6 +152,10 @@ func (e mockEngine) FetchByQuery( | |||
return e.fn(ctx, query, opts) | |||
} | |||
|
|||
func (e mockEngine) Storage() storage.Storage { | |||
return e.storage |
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: this is equivalent to return nil
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.
ok, i changed it to return nil
and added a comment explaining why the function exists
@@ -94,6 +94,45 @@ func sortByMaxima(ctx *common.Context, series singlePathSpec) (ts.SeriesList, er | |||
return highestMax(ctx, series, len(series.Values)) | |||
} | |||
|
|||
/* |
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: mind using //
comments instead of /**/
?
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.
done!
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!
What this PR does / why we need it:
Implemented the Graphite
useSeriesAbove
function.Here's the documentation ---> https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.useSeriesAbove
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: