Class: RightAws::Mon::QMonListMetrics
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Mon::QMonListMetrics
- Defined in:
- lib/ec2/right_mon_interface.rb
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAWSParser
Instance Method Summary collapse
Methods inherited from RightAWSParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from RightAws::RightAWSParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser
Instance Method Details
#reset ⇒ Object
191 192 193 194 195 |
# File 'lib/ec2/right_mon_interface.rb', line 191 def reset @result = [] @namespace = "" @measure_name = "" end |
#tagend(name) ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/ec2/right_mon_interface.rb', line 201 def tagend(name) case name when 'MeasureName' then @measure_name = @text when 'Namespace' then @namespace = @text when 'Name' then @metric[:name] = @text when 'Value' then @metric[:value] = @text when 'member' then @metric[:namespace] = @namespace @metric[:measure_name] = @measure_name @result << @metric end end |
#tagstart(name, attributes) ⇒ Object
197 198 199 |
# File 'lib/ec2/right_mon_interface.rb', line 197 def (name, attributes) @metric = {} if name == 'member' end |