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
200 201 202 203 204 |
# File 'lib/ec2/right_mon_interface.rb', line 200 def reset @result = [] @namespace = "" @measure_name = "" end |
#tagend(name) ⇒ Object
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/ec2/right_mon_interface.rb', line 210 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
206 207 208 |
# File 'lib/ec2/right_mon_interface.rb', line 206 def (name, attributes) @metric = {} if name == 'member' end |