Class: MMS::Resource::Metric
- Inherits:
-
MMS::Resource
- Object
- MMS::Resource
- MMS::Resource::Metric
- Defined in:
- lib/mms/resource/metric.rb
Instance Attribute Summary collapse
- #data_points(options = {}) ⇒ Object
-
#granularity ⇒ Object
Returns the value of attribute granularity.
-
#name ⇒ Object
Returns the value of attribute name.
-
#units ⇒ Object
Returns the value of attribute units.
Attributes inherited from MMS::Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from MMS::Resource
#_load, find, #from_hash, #invalidate_cache, #set_client, #set_data, table_header, #table_row, #table_section, #to_hash
Instance Attribute Details
#data_points(options = {}) ⇒ Object
16 17 18 |
# File 'lib/mms/resource/metric.rb', line 16 def data_points @data_points end |
#granularity ⇒ Object
Returns the value of attribute granularity.
7 8 9 |
# File 'lib/mms/resource/metric.rb', line 7 def granularity @granularity end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/mms/resource/metric.rb', line 5 def name @name end |
#units ⇒ Object
Returns the value of attribute units.
6 7 8 |
# File 'lib/mms/resource/metric.rb', line 6 def units @units end |
Class Method Details
._find(client, group_id, host_id, metric_name) ⇒ Object
35 36 37 |
# File 'lib/mms/resource/metric.rb', line 35 def self._find(client, group_id, host_id, metric_name) client.get('/groups/' + group_id + '/hosts/' + host_id + '/metrics/' + metric_name) end |