Class: Aws::Mon::QMonListMetrics
- Defined in:
- lib/ec2/right_mon_interface.rb
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
Instance Method Summary collapse
Methods inherited from AwsParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from Aws::AwsParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aws::AwsParser
Instance Method Details
#reset ⇒ Object
199 200 201 202 203 |
# File 'lib/ec2/right_mon_interface.rb', line 199 def reset @result = [] @namespace = "" @measure_name = "" end |
#tagend(name) ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/ec2/right_mon_interface.rb', line 209 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
205 206 207 |
# File 'lib/ec2/right_mon_interface.rb', line 205 def (name, attributes) @metric = {} if name == 'member' end |