aws-sdk-cloudwatch 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +77 -18
- data/lib/aws-sdk-cloudwatch/metric.rb +33 -11
- data/lib/aws-sdk-cloudwatch/types.rb +81 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26afd1ce1a1c9695616b25f6505f9b047e07ed82
|
4
|
+
data.tar.gz: 4bb5ce3bc9e622a0fdd49130dea1e75948a58a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3adfb887812e83c365db6cd3ac082b7fd3643502ff3143d0b21458e411cd0fc9f095ff70678446a65330da48adf906b9b8b5fadb9777b36676affc3da4150cb1
|
7
|
+
data.tar.gz: 78f7d065e4fa8c96d7ecca2d8ca883c6f363a2df843f646776bf0dd072ddbd33490ca1d425b6203ae1b4ea8a9490750ed2a08b098d2a38fe3a4b3772f3670e7f
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -254,8 +254,8 @@ module Aws::CloudWatch
|
|
254
254
|
|
255
255
|
# @!group API Operations
|
256
256
|
|
257
|
-
# Deletes the specified alarms.
|
258
|
-
# deleted.
|
257
|
+
# Deletes the specified alarms. You can delete up to 50 alarms in one
|
258
|
+
# operation. In the event of an error, no alarms are deleted.
|
259
259
|
#
|
260
260
|
# @option params [required, Array<String>] :alarm_names
|
261
261
|
# The alarms to be deleted.
|
@@ -802,6 +802,14 @@ module Aws::CloudWatch
|
|
802
802
|
# 5 minutes. After 63 days, the data is further aggregated and is
|
803
803
|
# available with a resolution of 1 hour.
|
804
804
|
#
|
805
|
+
# If you omit `Unit` in your request, all data that was collected with
|
806
|
+
# any unit is returned, along with the corresponding units that were
|
807
|
+
# specified when the data was reported to CloudWatch. If you specify a
|
808
|
+
# unit, the operation returns only data data that was collected with
|
809
|
+
# that unit specified. If you specify a unit that does not match the
|
810
|
+
# data collected, the results of the operation are null. CloudWatch does
|
811
|
+
# not perform unit conversions.
|
812
|
+
#
|
805
813
|
#
|
806
814
|
#
|
807
815
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax
|
@@ -816,6 +824,31 @@ module Aws::CloudWatch
|
|
816
824
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
817
825
|
# The time stamp indicating the earliest data to be returned.
|
818
826
|
#
|
827
|
+
# The value specified is inclusive; results include data points with the
|
828
|
+
# specified time stamp.
|
829
|
+
#
|
830
|
+
# CloudWatch rounds the specified time stamp as follows:
|
831
|
+
#
|
832
|
+
# * Start time less than 15 days ago - Round down to the nearest whole
|
833
|
+
# minute. For example, 12:32:34 is rounded down to 12:32:00.
|
834
|
+
#
|
835
|
+
# * Start time between 15 and 63 days ago - Round down to the nearest
|
836
|
+
# 5-minute clock interval. For example, 12:32:34 is rounded down to
|
837
|
+
# 12:30:00.
|
838
|
+
#
|
839
|
+
# * Start time greater than 63 days ago - Round down to the nearest
|
840
|
+
# 1-hour clock interval. For example, 12:32:34 is rounded down to
|
841
|
+
# 12:00:00.
|
842
|
+
#
|
843
|
+
# If you set `Period` to 5, 10, or 30, the start time of your request is
|
844
|
+
# rounded down to the nearest time that corresponds to even 5-, 10-, or
|
845
|
+
# 30-second divisions of a minute. For example, if you make a query at
|
846
|
+
# (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time
|
847
|
+
# of your request is rounded down and you receive data from 01:05:10 to
|
848
|
+
# 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes
|
849
|
+
# of data, using a period of 5 seconds, you receive data timestamped
|
850
|
+
# between 15:02:15 and 15:07:15.
|
851
|
+
#
|
819
852
|
# For better performance, specify `StartTime` and `EndTime` values that
|
820
853
|
# align with the value of the metric's `Period` and sync up with the
|
821
854
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
@@ -826,6 +859,9 @@ module Aws::CloudWatch
|
|
826
859
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
827
860
|
# The time stamp indicating the latest data to be returned.
|
828
861
|
#
|
862
|
+
# The value specified is exclusive; results include data points up to
|
863
|
+
# the specified time stamp.
|
864
|
+
#
|
829
865
|
# For better performance, specify `StartTime` and `EndTime` values that
|
830
866
|
# align with the value of the metric's `Period` and sync up with the
|
831
867
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
@@ -1072,10 +1108,13 @@ module Aws::CloudWatch
|
|
1072
1108
|
# numbers.
|
1073
1109
|
#
|
1074
1110
|
# @option params [String] :unit
|
1075
|
-
# The unit for a given metric.
|
1076
|
-
#
|
1077
|
-
#
|
1078
|
-
#
|
1111
|
+
# The unit for a given metric. If you omit `Unit`, all data that was
|
1112
|
+
# collected with any unit is returned, along with the corresponding
|
1113
|
+
# units that were specified when the data was reported to CloudWatch. If
|
1114
|
+
# you specify a unit, the operation returns only data data that was
|
1115
|
+
# collected with that unit specified. If you specify a unit that does
|
1116
|
+
# not match the data collected, the results of the operation are null.
|
1117
|
+
# CloudWatch does not perform unit conversions.
|
1079
1118
|
#
|
1080
1119
|
# @return [Types::GetMetricStatisticsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1081
1120
|
#
|
@@ -1549,7 +1588,7 @@ module Aws::CloudWatch
|
|
1549
1588
|
#
|
1550
1589
|
# @option params [Boolean] :actions_enabled
|
1551
1590
|
# Indicates whether actions should be executed during any changes to the
|
1552
|
-
# alarm state. The default is TRUE
|
1591
|
+
# alarm state. The default is `TRUE`.
|
1553
1592
|
#
|
1554
1593
|
# @option params [Array<String>] :ok_actions
|
1555
1594
|
# The actions to execute when this alarm transitions to an `OK` state
|
@@ -1612,7 +1651,9 @@ module Aws::CloudWatch
|
|
1612
1651
|
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
1613
1652
|
#
|
1614
1653
|
# @option params [String] :metric_name
|
1615
|
-
# The name for the metric associated with the alarm.
|
1654
|
+
# The name for the metric associated with the alarm. For each
|
1655
|
+
# `PutMetricAlarm` operation, you must specify either `MetricName` or a
|
1656
|
+
# `Metrics` array.
|
1616
1657
|
#
|
1617
1658
|
# If you are creating an alarm based on a math expression, you cannot
|
1618
1659
|
# specify this parameter, or any of the `Dimensions`, `Period`,
|
@@ -1642,6 +1683,10 @@ module Aws::CloudWatch
|
|
1642
1683
|
# `MetricName` is evaluated. Valid values are 10, 30, and any multiple
|
1643
1684
|
# of 60.
|
1644
1685
|
#
|
1686
|
+
# `Period` is required for alarms based on static thresholds. If you are
|
1687
|
+
# creating an alarm based on a metric math expression, you specify the
|
1688
|
+
# period for each metric within the objects in the `Metrics` array.
|
1689
|
+
#
|
1645
1690
|
# Be sure to specify 10 or 30 only for metrics that are stored by a
|
1646
1691
|
# `PutMetricData` call with a `StorageResolution` of 1. If you specify a
|
1647
1692
|
# period of 10 or 30 for a metric that does not have sub-minute
|
@@ -1669,9 +1714,18 @@ module Aws::CloudWatch
|
|
1669
1714
|
# help provide conceptual meaning to your data. Metric data points that
|
1670
1715
|
# specify a unit of measure, such as Percent, are aggregated separately.
|
1671
1716
|
#
|
1672
|
-
# If you specify
|
1673
|
-
#
|
1674
|
-
#
|
1717
|
+
# If you don't specify `Unit`, CloudWatch retrieves all unit types that
|
1718
|
+
# have been published for the metric and attempts to evaluate the alarm.
|
1719
|
+
# Usually metrics are published with only one unit, so the alarm will
|
1720
|
+
# work as intended.
|
1721
|
+
#
|
1722
|
+
# However, if the metric is published with multiple types of units and
|
1723
|
+
# you don't specify a unit, the alarm's behavior is not defined and
|
1724
|
+
# will behave un-predictably.
|
1725
|
+
#
|
1726
|
+
# We recommend omitting `Unit` so that you don't inadvertently specify
|
1727
|
+
# an incorrect unit that is not published for this metric. Doing so
|
1728
|
+
# causes the alarm to be stuck in the `INSUFFICIENT DATA` state.
|
1675
1729
|
#
|
1676
1730
|
# @option params [required, Integer] :evaluation_periods
|
1677
1731
|
# The number of periods over which data is compared to the specified
|
@@ -1697,6 +1751,9 @@ module Aws::CloudWatch
|
|
1697
1751
|
# @option params [Float] :threshold
|
1698
1752
|
# The value against which the specified statistic is compared.
|
1699
1753
|
#
|
1754
|
+
# This parameter is required for alarms based on static thresholds, but
|
1755
|
+
# should not be used for alarms based on anomaly detection models.
|
1756
|
+
#
|
1700
1757
|
# @option params [required, String] :comparison_operator
|
1701
1758
|
# The arithmetic operation to use when comparing the specified statistic
|
1702
1759
|
# and threshold. The specified statistic value is used as the first
|
@@ -1735,9 +1792,12 @@ module Aws::CloudWatch
|
|
1735
1792
|
#
|
1736
1793
|
# @option params [Array<Types::MetricDataQuery>] :metrics
|
1737
1794
|
# An array of `MetricDataQuery` structures that enable you to create an
|
1738
|
-
# alarm based on the result of a metric math expression.
|
1739
|
-
#
|
1740
|
-
#
|
1795
|
+
# alarm based on the result of a metric math expression. For each
|
1796
|
+
# `PutMetricAlarm` operation, you must specify either `MetricName` or a
|
1797
|
+
# `Metrics` array.
|
1798
|
+
#
|
1799
|
+
# Each item in the `Metrics` array either retrieves a metric or performs
|
1800
|
+
# a math expression.
|
1741
1801
|
#
|
1742
1802
|
# One item in the `Metrics` array is the expression that the alarm
|
1743
1803
|
# watches. You designate this expression by setting `ReturnValue` to
|
@@ -1889,9 +1949,8 @@ module Aws::CloudWatch
|
|
1889
1949
|
# @option params [required, String] :namespace
|
1890
1950
|
# The namespace for the metric data.
|
1891
1951
|
#
|
1892
|
-
#
|
1893
|
-
# that
|
1894
|
-
# products.
|
1952
|
+
# To avoid conflicts with AWS service namespaces, you should not specify
|
1953
|
+
# a namespace that begins with `AWS/`
|
1895
1954
|
#
|
1896
1955
|
# @option params [required, Array<Types::MetricDatum>] :metric_data
|
1897
1956
|
# The data for the metric. The array can include no more than 20 metrics
|
@@ -2080,7 +2139,7 @@ module Aws::CloudWatch
|
|
2080
2139
|
params: params,
|
2081
2140
|
config: config)
|
2082
2141
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
2083
|
-
context[:gem_version] = '1.
|
2142
|
+
context[:gem_version] = '1.28.0'
|
2084
2143
|
Seahorse::Client::Request.new(handlers, context)
|
2085
2144
|
end
|
2086
2145
|
|
@@ -281,10 +281,13 @@ module Aws::CloudWatch
|
|
281
281
|
# available for metrics when any of the metric values are negative
|
282
282
|
# numbers.
|
283
283
|
# @option options [String] :unit
|
284
|
-
# The unit for a given metric.
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
284
|
+
# The unit for a given metric. If you omit `Unit`, all data that was
|
285
|
+
# collected with any unit is returned, along with the corresponding
|
286
|
+
# units that were specified when the data was reported to CloudWatch. If
|
287
|
+
# you specify a unit, the operation returns only data data that was
|
288
|
+
# collected with that unit specified. If you specify a unit that does
|
289
|
+
# not match the data collected, the results of the operation are null.
|
290
|
+
# CloudWatch does not perform unit conversions.
|
288
291
|
# @return [Types::GetMetricStatisticsOutput]
|
289
292
|
def get_statistics(options = {})
|
290
293
|
options = options.merge(
|
@@ -359,7 +362,7 @@ module Aws::CloudWatch
|
|
359
362
|
# The description for the alarm.
|
360
363
|
# @option options [Boolean] :actions_enabled
|
361
364
|
# Indicates whether actions should be executed during any changes to the
|
362
|
-
# alarm state. The default is TRUE
|
365
|
+
# alarm state. The default is `TRUE`.
|
363
366
|
# @option options [Array<String>] :ok_actions
|
364
367
|
# The actions to execute when this alarm transitions to an `OK` state
|
365
368
|
# from any other state. Each action is specified as an Amazon Resource
|
@@ -434,6 +437,10 @@ module Aws::CloudWatch
|
|
434
437
|
# `MetricName` is evaluated. Valid values are 10, 30, and any multiple
|
435
438
|
# of 60.
|
436
439
|
#
|
440
|
+
# `Period` is required for alarms based on static thresholds. If you are
|
441
|
+
# creating an alarm based on a metric math expression, you specify the
|
442
|
+
# period for each metric within the objects in the `Metrics` array.
|
443
|
+
#
|
437
444
|
# Be sure to specify 10 or 30 only for metrics that are stored by a
|
438
445
|
# `PutMetricData` call with a `StorageResolution` of 1. If you specify a
|
439
446
|
# period of 10 or 30 for a metric that does not have sub-minute
|
@@ -460,9 +467,18 @@ module Aws::CloudWatch
|
|
460
467
|
# help provide conceptual meaning to your data. Metric data points that
|
461
468
|
# specify a unit of measure, such as Percent, are aggregated separately.
|
462
469
|
#
|
463
|
-
# If you specify
|
464
|
-
#
|
465
|
-
#
|
470
|
+
# If you don't specify `Unit`, CloudWatch retrieves all unit types that
|
471
|
+
# have been published for the metric and attempts to evaluate the alarm.
|
472
|
+
# Usually metrics are published with only one unit, so the alarm will
|
473
|
+
# work as intended.
|
474
|
+
#
|
475
|
+
# However, if the metric is published with multiple types of units and
|
476
|
+
# you don't specify a unit, the alarm's behavior is not defined and
|
477
|
+
# will behave un-predictably.
|
478
|
+
#
|
479
|
+
# We recommend omitting `Unit` so that you don't inadvertently specify
|
480
|
+
# an incorrect unit that is not published for this metric. Doing so
|
481
|
+
# causes the alarm to be stuck in the `INSUFFICIENT DATA` state.
|
466
482
|
# @option options [required, Integer] :evaluation_periods
|
467
483
|
# The number of periods over which data is compared to the specified
|
468
484
|
# threshold. If you are setting an alarm that requires that a number of
|
@@ -484,6 +500,9 @@ module Aws::CloudWatch
|
|
484
500
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation
|
485
501
|
# @option options [Float] :threshold
|
486
502
|
# The value against which the specified statistic is compared.
|
503
|
+
#
|
504
|
+
# This parameter is required for alarms based on static thresholds, but
|
505
|
+
# should not be used for alarms based on anomaly detection models.
|
487
506
|
# @option options [required, String] :comparison_operator
|
488
507
|
# The arithmetic operation to use when comparing the specified statistic
|
489
508
|
# and threshold. The specified statistic value is used as the first
|
@@ -519,9 +538,12 @@ module Aws::CloudWatch
|
|
519
538
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples
|
520
539
|
# @option options [Array<Types::MetricDataQuery>] :metrics
|
521
540
|
# An array of `MetricDataQuery` structures that enable you to create an
|
522
|
-
# alarm based on the result of a metric math expression.
|
523
|
-
#
|
524
|
-
#
|
541
|
+
# alarm based on the result of a metric math expression. For each
|
542
|
+
# `PutMetricAlarm` operation, you must specify either `MetricName` or a
|
543
|
+
# `Metrics` array.
|
544
|
+
#
|
545
|
+
# Each item in the `Metrics` array either retrieves a metric or performs
|
546
|
+
# a math expression.
|
525
547
|
#
|
526
548
|
# One item in the `Metrics` array is the expression that the alarm
|
527
549
|
# watches. You designate this expression by setting `ReturnValue` to
|
@@ -795,6 +795,31 @@ module Aws::CloudWatch
|
|
795
795
|
# @!attribute [rw] start_time
|
796
796
|
# The time stamp indicating the earliest data to be returned.
|
797
797
|
#
|
798
|
+
# The value specified is inclusive; results include data points with
|
799
|
+
# the specified time stamp.
|
800
|
+
#
|
801
|
+
# CloudWatch rounds the specified time stamp as follows:
|
802
|
+
#
|
803
|
+
# * Start time less than 15 days ago - Round down to the nearest whole
|
804
|
+
# minute. For example, 12:32:34 is rounded down to 12:32:00.
|
805
|
+
#
|
806
|
+
# * Start time between 15 and 63 days ago - Round down to the nearest
|
807
|
+
# 5-minute clock interval. For example, 12:32:34 is rounded down to
|
808
|
+
# 12:30:00.
|
809
|
+
#
|
810
|
+
# * Start time greater than 63 days ago - Round down to the nearest
|
811
|
+
# 1-hour clock interval. For example, 12:32:34 is rounded down to
|
812
|
+
# 12:00:00.
|
813
|
+
#
|
814
|
+
# If you set `Period` to 5, 10, or 30, the start time of your request
|
815
|
+
# is rounded down to the nearest time that corresponds to even 5-,
|
816
|
+
# 10-, or 30-second divisions of a minute. For example, if you make a
|
817
|
+
# query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the
|
818
|
+
# start time of your request is rounded down and you receive data from
|
819
|
+
# 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the
|
820
|
+
# previous 5 minutes of data, using a period of 5 seconds, you receive
|
821
|
+
# data timestamped between 15:02:15 and 15:07:15.
|
822
|
+
#
|
798
823
|
# For better performance, specify `StartTime` and `EndTime` values
|
799
824
|
# that align with the value of the metric's `Period` and sync up with
|
800
825
|
# the beginning and end of an hour. For example, if the `Period` of a
|
@@ -806,6 +831,9 @@ module Aws::CloudWatch
|
|
806
831
|
# @!attribute [rw] end_time
|
807
832
|
# The time stamp indicating the latest data to be returned.
|
808
833
|
#
|
834
|
+
# The value specified is exclusive; results include data points up to
|
835
|
+
# the specified time stamp.
|
836
|
+
#
|
809
837
|
# For better performance, specify `StartTime` and `EndTime` values
|
810
838
|
# that align with the value of the metric's `Period` and sync up with
|
811
839
|
# the beginning and end of an hour. For example, if the `Period` of a
|
@@ -1000,10 +1028,13 @@ module Aws::CloudWatch
|
|
1000
1028
|
# @return [Array<String>]
|
1001
1029
|
#
|
1002
1030
|
# @!attribute [rw] unit
|
1003
|
-
# The unit for a given metric.
|
1004
|
-
#
|
1005
|
-
#
|
1006
|
-
#
|
1031
|
+
# The unit for a given metric. If you omit `Unit`, all data that was
|
1032
|
+
# collected with any unit is returned, along with the corresponding
|
1033
|
+
# units that were specified when the data was reported to CloudWatch.
|
1034
|
+
# If you specify a unit, the operation returns only data data that was
|
1035
|
+
# collected with that unit specified. If you specify a unit that does
|
1036
|
+
# not match the data collected, the results of the operation are null.
|
1037
|
+
# CloudWatch does not perform unit conversions.
|
1007
1038
|
# @return [String]
|
1008
1039
|
#
|
1009
1040
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatisticsInput AWS API Documentation
|
@@ -1809,8 +1840,10 @@ module Aws::CloudWatch
|
|
1809
1840
|
#
|
1810
1841
|
# @!attribute [rw] unit
|
1811
1842
|
# When you are using a `Put` operation, this defines what unit you
|
1812
|
-
# want to use when storing the metric.
|
1813
|
-
#
|
1843
|
+
# want to use when storing the metric.
|
1844
|
+
#
|
1845
|
+
# In a `Get` operation, this displays the unit that is used for the
|
1846
|
+
# metric.
|
1814
1847
|
# @return [String]
|
1815
1848
|
#
|
1816
1849
|
# @!attribute [rw] storage_resolution
|
@@ -1884,8 +1917,15 @@ module Aws::CloudWatch
|
|
1884
1917
|
#
|
1885
1918
|
# @!attribute [rw] unit
|
1886
1919
|
# When you are using a `Put` operation, this defines what unit you
|
1887
|
-
# want to use when storing the metric.
|
1888
|
-
#
|
1920
|
+
# want to use when storing the metric.
|
1921
|
+
#
|
1922
|
+
# In a `Get` operation, if you omit `Unit` then all data that was
|
1923
|
+
# collected with any unit is returned, along with the corresponding
|
1924
|
+
# units that were specified when the data was reported to CloudWatch.
|
1925
|
+
# If you specify a unit, the operation returns only data data that was
|
1926
|
+
# collected with that unit specified. If you specify a unit that does
|
1927
|
+
# not match the data collected, the results of the operation are null.
|
1928
|
+
# CloudWatch does not perform unit conversions.
|
1889
1929
|
# @return [String]
|
1890
1930
|
#
|
1891
1931
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStat AWS API Documentation
|
@@ -2101,7 +2141,7 @@ module Aws::CloudWatch
|
|
2101
2141
|
#
|
2102
2142
|
# @!attribute [rw] actions_enabled
|
2103
2143
|
# Indicates whether actions should be executed during any changes to
|
2104
|
-
# the alarm state. The default is TRUE
|
2144
|
+
# the alarm state. The default is `TRUE`.
|
2105
2145
|
# @return [Boolean]
|
2106
2146
|
#
|
2107
2147
|
# @!attribute [rw] ok_actions
|
@@ -2168,7 +2208,9 @@ module Aws::CloudWatch
|
|
2168
2208
|
# @return [Array<String>]
|
2169
2209
|
#
|
2170
2210
|
# @!attribute [rw] metric_name
|
2171
|
-
# The name for the metric associated with the alarm.
|
2211
|
+
# The name for the metric associated with the alarm. For each
|
2212
|
+
# `PutMetricAlarm` operation, you must specify either `MetricName` or
|
2213
|
+
# a `Metrics` array.
|
2172
2214
|
#
|
2173
2215
|
# If you are creating an alarm based on a math expression, you cannot
|
2174
2216
|
# specify this parameter, or any of the `Dimensions`, `Period`,
|
@@ -2203,6 +2245,11 @@ module Aws::CloudWatch
|
|
2203
2245
|
# `MetricName` is evaluated. Valid values are 10, 30, and any multiple
|
2204
2246
|
# of 60.
|
2205
2247
|
#
|
2248
|
+
# `Period` is required for alarms based on static thresholds. If you
|
2249
|
+
# are creating an alarm based on a metric math expression, you specify
|
2250
|
+
# the period for each metric within the objects in the `Metrics`
|
2251
|
+
# array.
|
2252
|
+
#
|
2206
2253
|
# Be sure to specify 10 or 30 only for metrics that are stored by a
|
2207
2254
|
# `PutMetricData` call with a `StorageResolution` of 1. If you specify
|
2208
2255
|
# a period of 10 or 30 for a metric that does not have sub-minute
|
@@ -2232,9 +2279,19 @@ module Aws::CloudWatch
|
|
2232
2279
|
# data points that specify a unit of measure, such as Percent, are
|
2233
2280
|
# aggregated separately.
|
2234
2281
|
#
|
2235
|
-
# If you specify
|
2236
|
-
#
|
2237
|
-
#
|
2282
|
+
# If you don't specify `Unit`, CloudWatch retrieves all unit types
|
2283
|
+
# that have been published for the metric and attempts to evaluate the
|
2284
|
+
# alarm. Usually metrics are published with only one unit, so the
|
2285
|
+
# alarm will work as intended.
|
2286
|
+
#
|
2287
|
+
# However, if the metric is published with multiple types of units and
|
2288
|
+
# you don't specify a unit, the alarm's behavior is not defined and
|
2289
|
+
# will behave un-predictably.
|
2290
|
+
#
|
2291
|
+
# We recommend omitting `Unit` so that you don't inadvertently
|
2292
|
+
# specify an incorrect unit that is not published for this metric.
|
2293
|
+
# Doing so causes the alarm to be stuck in the `INSUFFICIENT DATA`
|
2294
|
+
# state.
|
2238
2295
|
# @return [String]
|
2239
2296
|
#
|
2240
2297
|
# @!attribute [rw] evaluation_periods
|
@@ -2262,6 +2319,9 @@ module Aws::CloudWatch
|
|
2262
2319
|
#
|
2263
2320
|
# @!attribute [rw] threshold
|
2264
2321
|
# The value against which the specified statistic is compared.
|
2322
|
+
#
|
2323
|
+
# This parameter is required for alarms based on static thresholds,
|
2324
|
+
# but should not be used for alarms based on anomaly detection models.
|
2265
2325
|
# @return [Float]
|
2266
2326
|
#
|
2267
2327
|
# @!attribute [rw] comparison_operator
|
@@ -2305,9 +2365,12 @@ module Aws::CloudWatch
|
|
2305
2365
|
#
|
2306
2366
|
# @!attribute [rw] metrics
|
2307
2367
|
# An array of `MetricDataQuery` structures that enable you to create
|
2308
|
-
# an alarm based on the result of a metric math expression.
|
2309
|
-
#
|
2310
|
-
#
|
2368
|
+
# an alarm based on the result of a metric math expression. For each
|
2369
|
+
# `PutMetricAlarm` operation, you must specify either `MetricName` or
|
2370
|
+
# a `Metrics` array.
|
2371
|
+
#
|
2372
|
+
# Each item in the `Metrics` array either retrieves a metric or
|
2373
|
+
# performs a math expression.
|
2311
2374
|
#
|
2312
2375
|
# One item in the `Metrics` array is the expression that the alarm
|
2313
2376
|
# watches. You designate this expression by setting `ReturnValue` to
|
@@ -2403,9 +2466,8 @@ module Aws::CloudWatch
|
|
2403
2466
|
# @!attribute [rw] namespace
|
2404
2467
|
# The namespace for the metric data.
|
2405
2468
|
#
|
2406
|
-
#
|
2407
|
-
# that
|
2408
|
-
# products.
|
2469
|
+
# To avoid conflicts with AWS service namespaces, you should not
|
2470
|
+
# specify a namespace that begins with `AWS/`
|
2409
2471
|
# @return [String]
|
2410
2472
|
#
|
2411
2473
|
# @!attribute [rw] metric_data
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|