class Pingdom::TMSSummary::Average
summary.average includeuptime {
"responsetime"=>{ "#"=>[ {"avgresponse"=>994}, {"avgresponse"=>6} ], "avgresponse"=>1000,"from"=>0, "to"=>1500000000 }, "status"=>{"totalup"=>5035757, "totalunknown"=>1293069551, "totaldown"=>5078}
}
Public Class Methods
parse(client, response)
click to toggle source
Calls superclass method
Pingdom::Base::parse
# File lib/pingdom/tms_summary/average.rb, line 25 def self.parse(client, response) body = super["summary"] sum = body["responsetime"] sum["status"] = Status.new(client, response, body["status"]) if body.key?("status") sum["responsetime"] = sum.delete("avgresponse") new(client, response, sum) end
Public Instance Methods
ingredients()
click to toggle source
# File lib/pingdom/tms_summary/average.rb, line 36 def ingredients @attributes["#"].map { |ingredient| Ingredient.new @client, ingredient } end
Also aliased as: per_ingredient