{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1008","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1008/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1008/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1008/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1008","id":117800481,"number":1008,"title":"Aws::CloudWatch::Client#describe_alarms_for_metric doesn't seem to work","user":{"login":"dominikgrygiel","id":793646,"avatar_url":"https://avatars.githubusercontent.com/u/793646?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikgrygiel","html_url":"https://github.com/dominikgrygiel","followers_url":"https://api.github.com/users/dominikgrygiel/followers","following_url":"https://api.github.com/users/dominikgrygiel/following{/other_user}","gists_url":"https://api.github.com/users/dominikgrygiel/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikgrygiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikgrygiel/subscriptions","organizations_url":"https://api.github.com/users/dominikgrygiel/orgs","repos_url":"https://api.github.com/users/dominikgrygiel/repos","events_url":"https://api.github.com/users/dominikgrygiel/events{/privacy}","received_events_url":"https://api.github.com/users/dominikgrygiel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/question","name":"question","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"awood45","id":2114465,"avatar_url":"https://avatars.githubusercontent.com/u/2114465?v=3","gravatar_id":"","url":"https://api.github.com/users/awood45","html_url":"https://github.com/awood45","followers_url":"https://api.github.com/users/awood45/followers","following_url":"https://api.github.com/users/awood45/following{/other_user}","gists_url":"https://api.github.com/users/awood45/gists{/gist_id}","starred_url":"https://api.github.com/users/awood45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awood45/subscriptions","organizations_url":"https://api.github.com/users/awood45/orgs","repos_url":"https://api.github.com/users/awood45/repos","events_url":"https://api.github.com/users/awood45/events{/privacy}","received_events_url":"https://api.github.com/users/awood45/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-19T12:08:14Z","updated_at":"2015-11-19T21:38:32Z","closed_at":null,"body":"I've tried to use #describe_alarms_for_metric with different parameters (changing unit, period, statistic) with no success. It always see to return empty response for me. Example:\r\n\r\n```\r\n[1] pry(main)> namespace = 'AWS/DynamoDB'\r\n=> \"AWS/DynamoDB\"\r\n[2] pry(main)> metric_name = 'ConsumedWriteCapacityUnits'\r\n=> \"ConsumedWriteCapacityUnits\"\r\n[3] pry(main)> $cloudwatch.describe_alarms_for_metric(namespace: namespace, metric_name: metric_name).metric_alarms.size\r\n=> 0\r\n[4] pry(main)> $cloudwatch.describe_alarms.metric_alarms.select { |a| a.namespace == namespace && a.metric_name == metric_name }.size\r\n=> 10\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/158205635","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1008#issuecomment-158205635","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1008","id":158205635,"user":{"login":"awood45","id":2114465,"avatar_url":"https://avatars.githubusercontent.com/u/2114465?v=3","gravatar_id":"","url":"https://api.github.com/users/awood45","html_url":"https://github.com/awood45","followers_url":"https://api.github.com/users/awood45/followers","following_url":"https://api.github.com/users/awood45/following{/other_user}","gists_url":"https://api.github.com/users/awood45/gists{/gist_id}","starred_url":"https://api.github.com/users/awood45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awood45/subscriptions","organizations_url":"https://api.github.com/users/awood45/orgs","repos_url":"https://api.github.com/users/awood45/repos","events_url":"https://api.github.com/users/awood45/events{/privacy}","received_events_url":"https://api.github.com/users/awood45/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T21:38:32Z","updated_at":"2015-11-19T21:38:32Z","body":"Can you include a wire trace for this? Try:\r\n\r\n```ruby\r\nclient = Aws::CloudWatch::Client.new(http_wire_trace: true)\r\nclient..describe_alarms_for_metric(namespace: namespace, metric_name: metric_name)\r\nclient.describe_alarms\r\n```\r\n\r\nI'd like to separate service behavior from any SDK code."}}