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

cmd/bosun: Add over, shift, and merge funcs #1598

Merged
merged 1 commit into from
Feb 16, 2016
Merged

cmd/bosun: Add over, shift, and merge funcs #1598

merged 1 commit into from
Feb 16, 2016

Conversation

kylebrandt
Copy link
Member

This adds the ability to graph multiple seriesSets in expression graphs, and also graph things like week-over-week.

@@ -371,6 +396,43 @@ func Filter(e *State, T miniprofiler.Timer, series *Results, number *Results) (*
return series, nil
}

func Merge(e *State, T miniprofiler.Timer, series ...*Results) (*Results, error) {
if len(series) < 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer == 0 and == 1 for these two short circuit clauses.

This adds the ability to graph multiple seriesSets in expression graphs, and also graph things like week-over-week. Fixes #985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants