Class: Aws::Mon::QMonGetMetricStatistics
- Defined in:
- lib/ec2/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
176 177 178 |
# File 'lib/ec2/mon_interface.rb', line 176 def reset @result = [] end |
#tagend(name) ⇒ Object
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/ec2/mon_interface.rb', line 184 def tagend(name) case name when 'Timestamp' then @metric[:timestamp] = @text when 'Samples' then @metric[:samples] = @text when 'Unit' then @metric[:unit] = @text when 'Average' then @metric[:average] = @text when 'Minimum' then @metric[:minimum] = @text when 'Maximum' then @metric[:maximum] = @text when 'Sum' then @metric[:sum] = @text when 'Value' then @metric[:value] = @text when 'member' then @result << @metric end end |
#tagstart(name, attributes) ⇒ Object
180 181 182 |
# File 'lib/ec2/mon_interface.rb', line 180 def (name, attributes) @metric = {} if name == 'member' end |