    # File lib/fog/aws/models/cloud_watch/metrics.rb, line 16
            def get(namespace, metric_name, dimensions=nil)
              list_opts = {'Namespace' => namespace, 'MetricName' => metric_name}
              if dimensions
                dimensions_array = dimensions.collect do |name, value|
                  {'Name' => name, 'Value' => value}
                end
                # list_opts.merge!('Dimensions' => dimensions_array)
              end
              if data = connection.list_metrics(list_opts).body['ListMetricsResult']['Metrics'].first
                new(data)
              end
            end