Class: Pingdom::TMSSummary::Proxy
- Inherits:
-
Struct
- Object
- Struct
- Pingdom::TMSSummary::Proxy
- Defined in:
- lib/pingdom/tms_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/tms_summary.rb', line 3 def client @client end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/pingdom/tms_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/tms_summary.rb', line 4 def average( = {}) .reverse_merge!(includeuptime: true) Average.parse(client, client.get("tms.summary.average/#{id}", )) end |
#outage(options = {}) ⇒ Object Also known as: outages
10 11 12 13 |
# File 'lib/pingdom/tms_summary.rb', line 10 def outage( = {}) .reverse_merge!(includeuptime: true) Outage.parse(client, client.get("tms.summary.outage/#{id}", )) end |
#performance(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/pingdom/tms_summary.rb', line 16 def performance( = {}) .reverse_merge!(resolution: :day, includeuptime: true) Performance.parse(client, client.get("tms.summary.performance/#{id}", )) end |