lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.83.0 vs lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.84.0

- old
+ new

@@ -582,10 +582,13 @@ # Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the # number of bytes that an instance receives on all network interfaces. # You can also specify a unit when you create a custom metric. Units # help provide conceptual meaning to your data. Metric data points that # specify a unit of measure, such as Percent, are aggregated separately. + # If you are creating an alarm based on a metric math expression, you + # can specify the unit for each metric (if needed) within the objects in + # the `Metrics` array. # # 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 works # as intended. @@ -674,13 +677,13 @@ # watches. You designate this expression by setting `ReturnData` to true # for this object in the array. For more information, see # [MetricDataQuery][1]. # # If you use the `Metrics` parameter, you cannot include the - # `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or - # `ExtendedStatistic` parameters of `PutMetricAlarm` in the same - # operation. Instead, you retrieve the metrics you are using in your - # math expression as part of the `Metrics` array. + # `Namespace`, `MetricName`, `Dimensions`, `Period`, `Unit`, + # `Statistic`, or `ExtendedStatistic` parameters of `PutMetricAlarm` in + # the same operation. Instead, you retrieve the metrics you are using in + # your math expression as part of the `Metrics` array. # # # # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html # @option options [Array<Types::Tag>] :tags