Class: Pingdom::Summary::Proxy
- Inherits:
-
Struct
- Object
- Struct
- Pingdom::Summary::Proxy
- Defined in:
- lib/pingdom/summary.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #average(options = {}) ⇒ Object (also: #averages)
- #outage(options = {}) ⇒ Object (also: #outages)
- #performance(options = {}) ⇒ Object
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client
3 4 5 |
# File 'lib/pingdom/summary.rb', line 3 def client @client end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/pingdom/summary.rb', line 3 def id @id end |
Instance Method Details
#average(options = {}) ⇒ Object Also known as: averages
4 5 6 7 |
# File 'lib/pingdom/summary.rb', line 4 def average( = {}) .reverse_merge!(byprobe: true, includeuptime: true) Average.parse(client, client.get("summary.average/#{id}", )) end |
#outage(options = {}) ⇒ Object Also known as: outages
10 11 12 13 |
# File 'lib/pingdom/summary.rb', line 10 def outage( = {}) .reverse_merge!(byprobe: true, includeuptime: true) Outage.parse(client, client.get("summary.outage/#{id}", )) end |
#performance(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/pingdom/summary.rb', line 16 def performance( = {}) .reverse_merge!(resolution: :day, includeuptime: true) Performance.parse(client, client.get("summary.performance/#{id}", )) end |