2011-09-29 17:55:48 -04:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module CloudWatch
|
2011-09-30 14:49:10 -04:00
|
|
|
|
2011-09-29 17:55:48 -04:00
|
|
|
class PutMetricAlarm < Fog::Parsers::Base
|
2011-09-30 14:49:10 -04:00
|
|
|
|
2011-09-29 17:55:48 -04:00
|
|
|
def reset
|
|
|
|
@response = { 'ResponseMetadata' => {} }
|
|
|
|
end
|
|
|
|
|
|
|
|
def start_element(name, attrs = [])
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when 'RequestId'
|
2011-10-04 08:31:04 -04:00
|
|
|
@response['ResponseMetadata'][name] = value.strip
|
2011-09-29 17:55:48 -04:00
|
|
|
end
|
|
|
|
end
|
2011-10-04 09:30:48 -04:00
|
|
|
end
|
2011-09-29 17:55:48 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2011-10-03 18:34:59 -04:00
|
|
|
end
|