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

Can't pass both byprobe and bycountry to summary.average #2

Open
duien opened this issue Mar 2, 2011 · 1 comment
Open

Can't pass both byprobe and bycountry to summary.average #2

duien opened this issue Mar 2, 2011 · 1 comment

Comments

@duien
Copy link
Contributor

duien commented Mar 2, 2011

The default :byprobe option should only be used if :bycountry is not set

ruby-1.8.7-p302 > $client.checks.first.summary.average :bycountry => true
Pingdom::Error: bycountry and byprobe can not both be set to true (400 Bad Request)
    from ./lib/pingdom/base.rb:42:in `check_error!'
    from ./lib/pingdom/base.rb:49:in `parse'
    from ./lib/pingdom/summary/average.rb:12:in `parse'
    from ./lib/pingdom/summary.rb:8:in `average'
    from (irb):1
@mtodd
Copy link
Owner

mtodd commented Apr 7, 2011

For now the workaround is to also specify :byprobe to false.

starsirius pushed a commit to starsirius/pingdom-client that referenced this issue Mar 30, 2015
Update to make this gem work again
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

No branches or pull requests

2 participants