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

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

Comments

Projects
None yet
2 participants
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
Owner

mtodd commented Apr 7, 2011

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

@starsirius starsirius pushed a commit to starsirius/pingdom-client that referenced this issue Mar 30, 2015

@JDStraughan JDStraughan Merge pull request #2 from NAP-Kerr/master
Update to make this gem work again
2cc3ea8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment