def put_metric_alarm(options)
if dimensions = options.delete('Dimensions')
options.merge!(AWS.indexed_param('Dimensions.member.%d.Name', dimensions.collect {|dimension| dimension['Name']}))
options.merge!(AWS.indexed_param('Dimensions.member.%d.Value', dimensions.collect {|dimension| dimension['Value']}))
end
if alarm_actions = options.delete('AlarmActions')
options.merge!(AWS.indexed_param('AlarmActions.member.%d', [*alarm_actions]))
end
if insufficient_data_actions = options.delete('InsufficientDataActions')
options.merge!(AWS.indexed_param('InsufficientDataActions.member.%d', [*insufficient_data_actions]))
end
if ok_actions = options.delete('OKActions')
options.merge!(AWS.indexed_param('OKActions.member.%d', [*ok_actions]))
end
request({
'Action' => 'PutMetricAlarm',
:parser => Fog::Parsers::AWS::CloudWatch::PutMetricAlarm.new
}.merge(options))
end