lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.41.0 vs lib/aws-sdk-cloudwatch/resource.rb in aws-sdk-cloudwatch-1.42.0

- old
+ new

@@ -76,11 +76,11 @@ # specify in `ChildrenOfAlarmName`. Information about the composite # alarm that you name in `ChildrenOfAlarmName` is not returned. # # If you specify `ChildrenOfAlarmName`, you cannot specify any other # parameters in the request except for `MaxRecords` and `NextToken`. If - # you do so, you will receive a validation error. + # you do so, you receive a validation error. # # <note markdown="1"> Only the `Alarm Name`, `ARN`, `StateValue` # (OK/ALARM/INSUFFICIENT\_DATA), and `StateUpdatedTimestamp` information # are returned by this operation when you use this parameter. To get # complete information about these alarms, perform another @@ -96,11 +96,11 @@ # in `ParentsOfAlarmName`. Information about the alarm that you specify # in `ParentsOfAlarmName` is not returned. # # If you specify `ParentsOfAlarmName`, you cannot specify any other # parameters in the request except for `MaxRecords` and `NextToken`. If - # you do so, you will receive a validation error. + # you do so, you receive a validation error. # # <note markdown="1"> Only the Alarm Name and ARN are returned by this operation when you # use this parameter. To get complete information about these alarms, # perform another `DescribeAlarms` operation and specify the parent # alarm names in the `AlarmNames` parameter. @@ -174,11 +174,11 @@ # specify in `ChildrenOfAlarmName`. Information about the composite # alarm that you name in `ChildrenOfAlarmName` is not returned. # # If you specify `ChildrenOfAlarmName`, you cannot specify any other # parameters in the request except for `MaxRecords` and `NextToken`. If - # you do so, you will receive a validation error. + # you do so, you receive a validation error. # # <note markdown="1"> Only the `Alarm Name`, `ARN`, `StateValue` # (OK/ALARM/INSUFFICIENT\_DATA), and `StateUpdatedTimestamp` information # are returned by this operation when you use this parameter. To get # complete information about these alarms, perform another @@ -194,11 +194,11 @@ # in `ParentsOfAlarmName`. Information about the alarm that you specify # in `ParentsOfAlarmName` is not returned. # # If you specify `ParentsOfAlarmName`, you cannot specify any other # parameters in the request except for `MaxRecords` and `NextToken`. If - # you do so, you will receive a validation error. + # you do so, you receive a validation error. # # <note markdown="1"> Only the Alarm Name and ARN are returned by this operation when you # use this parameter. To get complete information about these alarms, # perform another `DescribeAlarms` operation and specify the parent # alarm names in the `AlarmNames` parameter. @@ -251,17 +251,27 @@ # { # name: "DimensionName", # required # value: "DimensionValue", # }, # ], + # recently_active: "PT3H", # accepts PT3H # }) # @param [Hash] options ({}) # @option options [String] :namespace # The namespace to filter against. # @option options [String] :metric_name # The name of the metric to filter against. # @option options [Array<Types::DimensionFilter>] :dimensions # The dimensions to filter against. + # @option options [String] :recently_active + # To filter the results to show only metrics that have had data points + # published in the past three hours, specify this parameter with a value + # of `PT3H`. This is the only valid value for this parameter. + # + # 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. # @return [Metric::Collection] def metrics(options = {}) batches = Enumerator.new do |y| resp = @client.list_metrics(options) resp.each_page do |page|