mtodd / pingdom-client

Pingdom Ruby Client (Unofficial)
30 stars 66 forks source link

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

Open duien opened 13 years ago

duien commented 13 years ago

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 commented 13 years ago

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