lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.68.0 vs lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.69.0

- old
+ new

@@ -252,10 +252,12 @@ # name: "DimensionName", # required # value: "DimensionValue", # }, # ], # recently_active: "PT3H", # accepts PT3H + # include_linked_accounts: false, + # owning_account: "AccountId", # }) # @param [Hash] options ({}) # @option options [String] :namespace # The metric namespace to filter against. Only the namespace that # matches exactly will be returned. @@ -272,9 +274,19 @@ # # The results that are returned are an approximation of the value you # specify. There is a low probability that the returned results include # metrics with last published data as much as 40 minutes more than the # specified time interval. + # @option options [Boolean] :include_linked_accounts + # If you are using this operation in a monitoring account, specify + # `true` to include metrics from source accounts in the returned data. + # + # The default is `false`. + # @option options [String] :owning_account + # When you use this operation in a monitoring account, use this field to + # return metrics only from one source account. To do so, specify that + # source account ID in this field, and also specify `true` for + # `IncludeLinkedAccounts`. # @return [Metric::Collection] def metrics(options = {}) batches = Enumerator.new do |y| resp = @client.list_metrics(options) resp.each_page do |page|