lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.41.0 vs lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.42.0
- old
+ new
@@ -288,14 +288,14 @@
# numbers.
# @option options [String] :unit
# The unit for a given metric. If you omit `Unit`, all data that was
# collected with any unit is returned, along with the corresponding
# units that were specified when the data was reported to CloudWatch. If
- # you specify a unit, the operation returns only data data that was
- # collected with that unit specified. If you specify a unit that does
- # not match the data collected, the results of the operation are null.
- # CloudWatch does not perform unit conversions.
+ # you specify a unit, the operation returns only data that was collected
+ # with that unit specified. If you specify a unit that does not match
+ # the data collected, the results of the operation are null. CloudWatch
+ # does not perform unit conversions.
# @return [Types::GetMetricStatisticsOutput]
def get_statistics(options = {})
options = options.merge(
namespace: @namespace,
metric_name: @name
@@ -361,12 +361,11 @@
# ],
# threshold_metric_id: "MetricId",
# })
# @param [Hash] options ({})
# @option options [required, String] :alarm_name
- # The name for the alarm. This name must be unique within your AWS
- # account.
+ # The name for the alarm. This name must be unique within the Region.
# @option options [String] :alarm_description
# The description for the alarm.
# @option options [Boolean] :actions_enabled
# Indicates whether actions should be executed during any changes to the
# alarm state. The default is `TRUE`.
@@ -452,12 +451,12 @@
# `PutMetricData` call with a `StorageResolution` of 1. If you specify a
# period of 10 or 30 for a metric that does not have sub-minute
# resolution, the alarm still attempts to gather data at the period rate
# that you specify. In this case, it does not receive data for the
# attempts that do not correspond to a one-minute data resolution, and
- # the alarm may often lapse into INSUFFICENT\_DATA status. Specifying 10
- # or 30 also sets this alarm as a high-resolution alarm, which has a
+ # the alarm might often lapse into INSUFFICENT\_DATA status. Specifying
+ # 10 or 30 also sets this alarm as a high-resolution alarm, which has a
# higher charge than other alarms. For more information about pricing,
# see [Amazon CloudWatch Pricing][1].
#
# An alarm's total current evaluation period can be no longer than one
# day, so `Period` multiplied by `EvaluationPeriods` cannot be more than
@@ -474,16 +473,16 @@
# help provide conceptual meaning to your data. Metric data points that
# specify a unit of measure, such as Percent, are aggregated separately.
#
# If you don't specify `Unit`, CloudWatch retrieves all unit types that
# have been published for the metric and attempts to evaluate the alarm.
- # Usually metrics are published with only one unit, so the alarm will
- # work as intended.
+ # Usually, metrics are published with only one unit, so the alarm works
+ # as intended.
#
# However, if the metric is published with multiple types of units and
- # you don't specify a unit, the alarm's behavior is not defined and
- # will behave un-predictably.
+ # you don't specify a unit, the alarm's behavior is not defined and it
+ # behaves predictably.
#
# We recommend omitting `Unit` so that you don't inadvertently specify
# an incorrect unit that is not published for this metric. Doing so
# causes the alarm to be stuck in the `INSUFFICIENT DATA` state.
# @option options [required, Integer] :evaluation_periods
@@ -569,10 +568,10 @@
# @option options [Array<Types::Tag>] :tags
# A list of key-value pairs to associate with the alarm. You can
# associate as many as 50 tags with an alarm.
#
# Tags can help you organize and categorize your resources. You can also
- # use them to scope user permissions, by granting a user permission to
+ # use them to scope user permissions by granting a user permission to
# access or change only resources with certain tag values.
# @option options [String] :threshold_metric_id
# If this is an alarm based on an anomaly detection model, make this
# value match the ID of the `ANOMALY_DETECTION_BAND` function.
#