Class: Pingdom::SummaryPerformance

Inherits:
Base
  • Object
show all
Defined in:
lib/pingdom/summary_performance.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#additional_field

Class Method Summary collapse

Methods inherited from Base

#add, all, body, client, collection, error?, find, #get, #initialize, limited, params, params=, parse, status, total, update_client

Constructor Details

This class inherits a constructor from Pingdom::Base

Instance Attribute Details

#daysObject

Returns the value of attribute days.



32
33
34
# File 'lib/pingdom/summary_performance.rb', line 32

def days
  @days
end

#hoursObject

Returns the value of attribute hours.



32
33
34
# File 'lib/pingdom/summary_performance.rb', line 32

def hours
  @hours
end

#weeksObject

Returns the value of attribute weeks.



32
33
34
# File 'lib/pingdom/summary_performance.rb', line 32

def weeks
  @weeks
end

Class Method Details

.collection_typeObject



15
16
17
# File 'lib/pingdom/summary_performance.rb', line 15

def collection_type
  'summary'
end

.pathObject



11
12
13
# File 'lib/pingdom/summary_performance.rb', line 11

def path
  '/summary.performance'
end

.permitObject



19
20
21
22
23
24
25
26
27
28
# 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