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 dropl and dropg #1143

Merged
merged 1 commit into from
Jul 7, 2015
Merged

cmd/bosun: Add dropl and dropg #1143

merged 1 commit into from
Jul 7, 2015

Conversation

kylebrandt
Copy link
Member

No description provided.

@captncraig
Copy link
Contributor

docs?

func DropLe(e *State, T miniprofiler.Timer, series *Results, threshold float64) (*Results, error) {
dropFunction := func(value float64, threshold float64) bool { return value <= threshold }
return DropValues(e, T, series, threshold, dropFunction)
}

func DropL(e *State, T miniprofiler.Timer, series *Results, threshold float64) (*Results, error) {
dropFunction := func(value float64, threshold float64) bool { return value > threshold }
Copy link
Contributor

Choose a reason for hiding this comment

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

this is identical to DropG

@kylebrandt
Copy link
Member Author

Docs added

captncraig added a commit that referenced this pull request Jul 7, 2015
cmd/bosun: Add dropl and dropg
@captncraig captncraig merged commit 42266d2 into master Jul 7, 2015
@captncraig captncraig deleted the dropgl branch July 7, 2015 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants