Permalink
Browse files

Tweak the Readme

  • Loading branch information...
1 parent b7e8f09 commit bb293c4032c1051e4ae1ef75d50f7dc1bb5b3395 @mtodd committed Mar 1, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 README.md
View
@@ -7,20 +7,23 @@ non-SOAP API client for their services.
client = Pingdom::Client.new :username => u, :password => p
check = client.checks.first #=> #<Pingdom::Check>
- check.lastresponsetime #=> 200 (ms)
+ check.last_response_time #=> 200 (ms)
check.status #=> :up
check.up? #=> true
-
+
result = check.results.first(:probes => [1,2,3], :status => [:up, :down])
#=> #<Pingdom::Result>
result.status #=> :up
result.up? #=> true
- result.responsetime #=> 200 (ms)
+ result.response_time #=> 20000 (microsecs)
avg = check.average(:from => 1.month.ago,
:probes => [1,2,3])
#=> #<Pingdom::Summary::Average>
- avg.responsetime.avgresponse
+ avg.response_time #=> 200 (ms)
+ probe_avg = avg.averages.first
+ probe_avg.response_time #=> 120 (ms)
+ probe_avg.probe.name #=> "Atlanta, GA"
## License

0 comments on commit bb293c4

Please sign in to comment.