lib/aws-sdk-cloudwatch/alarm.rb in aws-sdk-cloudwatch-1.25.0 vs lib/aws-sdk-cloudwatch/alarm.rb in aws-sdk-cloudwatch-1.26.0
- old
+ new
@@ -102,11 +102,12 @@
# @return [Time]
def state_updated_timestamp
data[:state_updated_timestamp]
end
- # The name of the metric associated with the alarm.
+ # The name of the metric associated with the alarm, if this is an alarm
+ # based on a single metric.
# @return [String]
def metric_name
data[:metric_name]
end
@@ -190,13 +191,24 @@
# @return [String]
def evaluate_low_sample_count_percentile
data[:evaluate_low_sample_count_percentile]
end
-
+ # An array of MetricDataQuery structures, used in an alarm based on a
+ # metric math expression. Each structure either retrieves a metric or
+ # performs a math expression. One item in the Metrics array is the math
+ # expression that the alarm watches. This expression by designated by
+ # having `ReturnValue` set to true.
# @return [Array<Types::MetricDataQuery>]
def metrics
data[:metrics]
+ end
+
+ # In an alarm based on an anomaly detection model, this is the ID of the
+ # `ANOMALY_DETECTION_BAND` function used as the threshold for the alarm.
+ # @return [String]
+ def threshold_metric_id
+ data[:threshold_metric_id]
end
# @!endgroup
# @return [Client]