amazonwebservices/aws-sdk-for-ruby — pull request #81 by marcocarvalho (2012-10-24 20:38:33+00:00)
Title: Cloud Watch metric class with error

## Error

```Ruby
metric = AWS::CloudWatch::Metric.new('Tracking', 'showcase_time')
metric.exists?
```

ArgumentError: unexpected option metric_item
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/option_grammar.rb:587:in `block in validate'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/option_grammar.rb:584:in `each'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/option_grammar.rb:584:in `validate'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/option_grammar.rb:600:in `request_params'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/query_request_builder.rb:37:in `populate_request'
from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:607:in `block (2 levels) in define_client_method'
(...)

## Cause
In Metric Class implementation resource_identifiers was responding:

```ruby
def resource_identifiers
[
[:namespace, namespace],
[:metric_item, metric_name], # metric_name expected! :D
[:dimensions, dimensions],
]
end
```

but *metric_name* was expected