lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.90.0 vs lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.92.0

- old
+ new

@@ -123,11 +123,11 @@ # specify the ARN of an SNS topic to find all alarms that send # notifications to that topic. # @return [Alarm::Collection] def alarms(options = {}) batches = Enumerator.new do |y| - resp = Aws::Plugins::UserAgent.feature('resource') do + resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_alarms(options) end resp.each_page do |page| batch = [] page.data.metric_alarms.each do |m| @@ -231,11 +231,11 @@ # specify the ARN of an SNS topic to find all alarms that send # notifications to that topic. # @return [CompositeAlarm::Collection] def composite_alarms(options = {}) batches = Enumerator.new do |y| - resp = Aws::Plugins::UserAgent.feature('resource') do + resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_alarms(options) end resp.each_page do |page| batch = [] page.data.composite_alarms.each do |c| @@ -307,10 +307,10 @@ # source account ID in this field, and also specify `true` for # `IncludeLinkedAccounts`. # @return [Metric::Collection] def metrics(options = {}) batches = Enumerator.new do |y| - resp = Aws::Plugins::UserAgent.feature('resource') do + resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.list_metrics(options) end resp.each_page do |page| batch = [] page.data.metrics.each do |m|