class Pingdom::SummaryPerformance
Attributes
days[RW]
hours[RW]
weeks[RW]
Public Class Methods
collection_type()
click to toggle source
# File lib/pingdom/summary_performance.rb, line 15 def collection_type 'summary' end
path()
click to toggle source
# File lib/pingdom/summary_performance.rb, line 11 def path '/summary.performance' end
permit()
click to toggle source
# File lib/pingdom/summary_performance.rb, line 19 def permit { probes: :valid_int_list?, to: :valid_time?, from: :valid_time?, resolution: :valid_resolution?, order: :valid_order?, includeuptime: :valid_boolean? } end
Public Instance Methods
days=(values)
click to toggle source
# File lib/pingdom/summary_performance.rb, line 42 def days= values @days=values.map do |v| Struct::Day.new( Time.at(v['starttime']), v['avgresponse'], v['uptime'], v['downtime'], v['unmonitored']) end end
hours=(values)
click to toggle source
# File lib/pingdom/summary_performance.rb, line 50 def hours= values @hours=values.map do |v| Struct::Hour.new( Time.at(v['starttime']), v['avgresponse'], v['uptime'], v['downtime'], v['unmonitored']) end end
weeks=(values)
click to toggle source
# File lib/pingdom/summary_performance.rb, line 34 def weeks= values @weeks=values.map do |v| Struct::Week.new( Time.at(v['starttime']), v['avgresponse'], v['uptime'], v['downtime'], v['unmonitored']) end end