Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants