aws-sdk-cloudwatch 1.37.0 → 1.42.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d96c09cadafe396fb720864aa64f6b54d92402cee3fd8d484255fcd13ac1feb
4
- data.tar.gz: 1db9067e4b964b1fb80e41a89c9f72f8c355801a33a3d9c859527b35761d3eae
3
+ metadata.gz: b2e13bb14c0f93943bf34ddb2339a3b5849c93e4d15da5ab298158fd587e2a07
4
+ data.tar.gz: 102fd2ca487d29f9bb0f54fb24182a0f6ac8617e0f17ae9d8e3b00695a465bce
5
5
  SHA512:
6
- metadata.gz: 5a9464cf2b773c1aafc337deb3c84490bb954b5a1f6d34b2162e84ea36eac6239b4a9e3615efb07ce1ba8fd415ae7df99947ad2af34b0ef567a9054fdc834943
7
- data.tar.gz: 9efce39cb670dee62514f72fec90a2f1039e7b739ae3d8e5c964caef0175d9de183860be2aa3c4aad9fbc0ac5d2d0f866f301c21b9d2a82e2e7c9899b9b9cf94
6
+ metadata.gz: 35ac2a9d2a1bc9102ce7ea866e48d91eee7d1cd52723619decdb9c2a97f69d9ce73b64f1f0cb01e12adee1264fd8d244c99f4ca355005ecf4b8fd680c2df3690
7
+ data.tar.gz: 6796036aaceca780b0675122cf729bbfed1dc9c057dde3205b15d0e0d657d36ecc2ca97da28420a7cadd2eb57495df1864da15cd8580c2457876ba65e6779fb9
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -49,6 +51,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
49
51
  # @service
50
52
  module Aws::CloudWatch
51
53
 
52
- GEM_VERSION = '1.37.0'
54
+ GEM_VERSION = '1.42.0'
53
55
 
54
56
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/query.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::CloudWatch
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::Query)
74
78
 
@@ -161,7 +165,7 @@ module Aws::CloudWatch
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::CloudWatch
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -394,7 +398,7 @@ module Aws::CloudWatch
394
398
  req.send_request(options)
395
399
  end
396
400
 
397
- # Deletes all dashboards that you specify. You may specify up to 100
401
+ # Deletes all dashboards that you specify. You can specify up to 100
398
402
  # dashboards to delete. If there is an error during this call, no
399
403
  # dashboards are deleted.
400
404
  #
@@ -421,8 +425,8 @@ module Aws::CloudWatch
421
425
  # Permanently deletes the specified Contributor Insights rules.
422
426
  #
423
427
  # If you create a rule, delete it, and then re-create it with the same
424
- # name, historical data from the first time the rule was created may or
425
- # may not be available.
428
+ # name, historical data from the first time the rule was created might
429
+ # not be available.
426
430
  #
427
431
  # @option params [required, Array<String>] :rule_names
428
432
  # An array of the rule names to delete. If you need to find out the
@@ -566,7 +570,7 @@ module Aws::CloudWatch
566
570
  #
567
571
  # If you specify `ChildrenOfAlarmName`, you cannot specify any other
568
572
  # parameters in the request except for `MaxRecords` and `NextToken`. If
569
- # you do so, you will receive a validation error.
573
+ # you do so, you receive a validation error.
570
574
  #
571
575
  # <note markdown="1"> Only the `Alarm Name`, `ARN`, `StateValue`
572
576
  # (OK/ALARM/INSUFFICIENT\_DATA), and `StateUpdatedTimestamp` information
@@ -587,7 +591,7 @@ module Aws::CloudWatch
587
591
  #
588
592
  # If you specify `ParentsOfAlarmName`, you cannot specify any other
589
593
  # parameters in the request except for `MaxRecords` and `NextToken`. If
590
- # you do so, you will receive a validation error.
594
+ # you do so, you receive a validation error.
591
595
  #
592
596
  # <note markdown="1"> Only the Alarm Name and ARN are returned by this operation when you
593
597
  # use this parameter. To get complete information about these alarms,
@@ -916,7 +920,7 @@ module Aws::CloudWatch
916
920
  #
917
921
  # @option params [Integer] :max_results
918
922
  # This parameter is not currently used. Reserved for future use. If it
919
- # is used in the future, the maximum value may be different.
923
+ # is used in the future, the maximum value might be different.
920
924
  #
921
925
  # @return [Types::DescribeInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
922
926
  #
@@ -1119,8 +1123,8 @@ module Aws::CloudWatch
1119
1123
  # data point.
1120
1124
  #
1121
1125
  # * `MaxContributorValue` -- the value of the top contributor for each
1122
- # data point. The identity of the contributor may change for each data
1123
- # point in the graph.
1126
+ # data point. The identity of the contributor might change for each
1127
+ # data point in the graph.
1124
1128
  #
1125
1129
  # If this rule aggregates by COUNT, the top contributor for each data
1126
1130
  # point is the contributor with the most occurrences in that period.
@@ -1171,8 +1175,8 @@ module Aws::CloudWatch
1171
1175
  # data point.
1172
1176
  #
1173
1177
  # * `MaxContributorValue` -- the value of the top contributor for each
1174
- # data point. The identity of the contributor may change for each data
1175
- # point in the graph.
1178
+ # data point. The identity of the contributor might change for each
1179
+ # data point in the graph.
1176
1180
  #
1177
1181
  # If this rule aggregates by COUNT, the top contributor for each data
1178
1182
  # point is the contributor with the most occurrences in that period.
@@ -1293,10 +1297,10 @@ module Aws::CloudWatch
1293
1297
  # If you omit `Unit` in your request, all data that was collected with
1294
1298
  # any unit is returned, along with the corresponding units that were
1295
1299
  # specified when the data was reported to CloudWatch. If you specify a
1296
- # unit, the operation returns only data data that was collected with
1297
- # that unit specified. If you specify a unit that does not match the
1298
- # data collected, the results of the operation are null. CloudWatch does
1299
- # not perform unit conversions.
1300
+ # unit, the operation returns only data that was collected with that
1301
+ # unit specified. If you specify a unit that does not match the data
1302
+ # collected, the results of the operation are null. CloudWatch does not
1303
+ # perform unit conversions.
1300
1304
  #
1301
1305
  #
1302
1306
  #
@@ -1602,10 +1606,10 @@ module Aws::CloudWatch
1602
1606
  # The unit for a given metric. If you omit `Unit`, all data that was
1603
1607
  # collected with any unit is returned, along with the corresponding
1604
1608
  # units that were specified when the data was reported to CloudWatch. If
1605
- # you specify a unit, the operation returns only data data that was
1606
- # collected with that unit specified. If you specify a unit that does
1607
- # not match the data collected, the results of the operation are null.
1608
- # CloudWatch does not perform unit conversions.
1609
+ # you specify a unit, the operation returns only data that was collected
1610
+ # with that unit specified. If you specify a unit that does not match
1611
+ # the data collected, the results of the operation are null. CloudWatch
1612
+ # does not perform unit conversions.
1609
1613
  #
1610
1614
  # @return [Types::GetMetricStatisticsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1611
1615
  #
@@ -1804,9 +1808,13 @@ module Aws::CloudWatch
1804
1808
  # Up to 500 results are returned for any one call. To retrieve
1805
1809
  # additional results, use the returned token with subsequent calls.
1806
1810
  #
1807
- # After you create a metric, allow up to fifteen minutes before the
1808
- # metric appears. Statistics about the metric, however, are available
1809
- # sooner using [GetMetricData][1] or [GetMetricStatistics][2].
1811
+ # After you create a metric, allow up to 15 minutes before the metric
1812
+ # appears. You can see statistics about the metric sooner by using
1813
+ # [GetMetricData][1] or [GetMetricStatistics][2].
1814
+ #
1815
+ # `ListMetrics` doesn't return information about metrics if those
1816
+ # metrics haven't reported data in the past two weeks. To retrieve
1817
+ # those metrics, use [GetMetricData][1] or [GetMetricStatistics][2].
1810
1818
  #
1811
1819
  #
1812
1820
  #
@@ -1826,6 +1834,16 @@ module Aws::CloudWatch
1826
1834
  # The token returned by a previous call to indicate that there is more
1827
1835
  # data available.
1828
1836
  #
1837
+ # @option params [String] :recently_active
1838
+ # To filter the results to show only metrics that have had data points
1839
+ # published in the past three hours, specify this parameter with a value
1840
+ # of `PT3H`. This is the only valid value for this parameter.
1841
+ #
1842
+ # The results that are returned are an approximation of the value you
1843
+ # specify. There is a low probability that the returned results include
1844
+ # metrics with last published data as much as 40 minutes more than the
1845
+ # specified time interval.
1846
+ #
1829
1847
  # @return [Types::ListMetricsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1830
1848
  #
1831
1849
  # * {Types::ListMetricsOutput#metrics #metrics} => Array&lt;Types::Metric&gt;
@@ -1845,6 +1863,7 @@ module Aws::CloudWatch
1845
1863
  # },
1846
1864
  # ],
1847
1865
  # next_token: "NextToken",
1866
+ # recently_active: "PT3H", # accepts PT3H
1848
1867
  # })
1849
1868
  #
1850
1869
  # @example Response structure
@@ -1878,7 +1897,7 @@ module Aws::CloudWatch
1878
1897
  # The ARN format of a Contributor Insights rule is
1879
1898
  # `arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name `
1880
1899
  #
1881
- # For more information on ARN format, see [ Resource Types Defined by
1900
+ # For more information about ARN format, see [ Resource Types Defined by
1882
1901
  # Amazon CloudWatch][1] in the *Amazon Web Services General Reference*.
1883
1902
  #
1884
1903
  #
@@ -2037,8 +2056,8 @@ module Aws::CloudWatch
2037
2056
  # The description for the composite alarm.
2038
2057
  #
2039
2058
  # @option params [required, String] :alarm_name
2040
- # The name for the composite alarm. This name must be unique within your
2041
- # AWS account.
2059
+ # The name for the composite alarm. This name must be unique within the
2060
+ # Region.
2042
2061
  #
2043
2062
  # @option params [required, String] :alarm_rule
2044
2063
  # An expression that specifies which other alarms are to be evaluated to
@@ -2221,8 +2240,8 @@ module Aws::CloudWatch
2221
2240
  # Contributor Insights to Analyze High-Cardinality Data][1].
2222
2241
  #
2223
2242
  # If you create a rule, delete it, and then re-create it with the same
2224
- # name, historical data from the first time the rule was created may or
2225
- # may not be available.
2243
+ # name, historical data from the first time the rule was created might
2244
+ # not be available.
2226
2245
  #
2227
2246
  #
2228
2247
  #
@@ -2341,8 +2360,7 @@ module Aws::CloudWatch
2341
2360
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role
2342
2361
  #
2343
2362
  # @option params [required, String] :alarm_name
2344
- # The name for the alarm. This name must be unique within your AWS
2345
- # account.
2363
+ # The name for the alarm. This name must be unique within the Region.
2346
2364
  #
2347
2365
  # @option params [String] :alarm_description
2348
2366
  # The description for the alarm.
@@ -2454,8 +2472,8 @@ module Aws::CloudWatch
2454
2472
  # resolution, the alarm still attempts to gather data at the period rate
2455
2473
  # that you specify. In this case, it does not receive data for the
2456
2474
  # attempts that do not correspond to a one-minute data resolution, and
2457
- # the alarm may often lapse into INSUFFICENT\_DATA status. Specifying 10
2458
- # or 30 also sets this alarm as a high-resolution alarm, which has a
2475
+ # the alarm might often lapse into INSUFFICENT\_DATA status. Specifying
2476
+ # 10 or 30 also sets this alarm as a high-resolution alarm, which has a
2459
2477
  # higher charge than other alarms. For more information about pricing,
2460
2478
  # see [Amazon CloudWatch Pricing][1].
2461
2479
  #
@@ -2477,12 +2495,12 @@ module Aws::CloudWatch
2477
2495
  #
2478
2496
  # If you don't specify `Unit`, CloudWatch retrieves all unit types that
2479
2497
  # have been published for the metric and attempts to evaluate the alarm.
2480
- # Usually metrics are published with only one unit, so the alarm will
2481
- # work as intended.
2498
+ # Usually, metrics are published with only one unit, so the alarm works
2499
+ # as intended.
2482
2500
  #
2483
2501
  # However, if the metric is published with multiple types of units and
2484
- # you don't specify a unit, the alarm's behavior is not defined and
2485
- # will behave un-predictably.
2502
+ # you don't specify a unit, the alarm's behavior is not defined and it
2503
+ # behaves predictably.
2486
2504
  #
2487
2505
  # We recommend omitting `Unit` so that you don't inadvertently specify
2488
2506
  # an incorrect unit that is not published for this metric. Doing so
@@ -2580,7 +2598,7 @@ module Aws::CloudWatch
2580
2598
  # associate as many as 50 tags with an alarm.
2581
2599
  #
2582
2600
  # Tags can help you organize and categorize your resources. You can also
2583
- # use them to scope user permissions, by granting a user permission to
2601
+ # use them to scope user permissions by granting a user permission to
2584
2602
  # access or change only resources with certain tag values.
2585
2603
  #
2586
2604
  # @option params [String] :threshold_metric_id
@@ -2779,9 +2797,9 @@ module Aws::CloudWatch
2779
2797
  # CloudWatch console or through [DescribeAlarmHistory][1].
2780
2798
  #
2781
2799
  # If you use `SetAlarmState` on a composite alarm, the composite alarm
2782
- # is not guaranteed to return to its actual state. It will return to its
2800
+ # is not guaranteed to return to its actual state. It returns to its
2783
2801
  # actual state only once any of its children alarms change state. It is
2784
- # also re-evaluated if you update its configuration.
2802
+ # also reevaluated if you update its configuration.
2785
2803
  #
2786
2804
  # If an alarm triggers EC2 Auto Scaling policies or application Auto
2787
2805
  # Scaling policies, you must include information in the
@@ -2793,8 +2811,7 @@ module Aws::CloudWatch
2793
2811
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html
2794
2812
  #
2795
2813
  # @option params [required, String] :alarm_name
2796
- # The name for the alarm. This name must be unique within the AWS
2797
- # account. The maximum length is 255 characters.
2814
+ # The name of the alarm.
2798
2815
  #
2799
2816
  # @option params [required, String] :state_value
2800
2817
  # The value of the state.
@@ -2837,7 +2854,7 @@ module Aws::CloudWatch
2837
2854
  # are alarms and Contributor Insights rules.
2838
2855
  #
2839
2856
  # Tags can help you organize and categorize your resources. You can also
2840
- # use them to scope user permissions, by granting a user permission to
2857
+ # use them to scope user permissions by granting a user permission to
2841
2858
  # access or change only resources with certain tag values.
2842
2859
  #
2843
2860
  # Tags don't have any semantic meaning to AWS and are interpreted
@@ -2860,7 +2877,7 @@ module Aws::CloudWatch
2860
2877
  # The ARN format of a Contributor Insights rule is
2861
2878
  # `arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name `
2862
2879
  #
2863
- # For more information on ARN format, see [ Resource Types Defined by
2880
+ # For more information about ARN format, see [ Resource Types Defined by
2864
2881
  # Amazon CloudWatch][1] in the *Amazon Web Services General Reference*.
2865
2882
  #
2866
2883
  #
@@ -2904,7 +2921,7 @@ module Aws::CloudWatch
2904
2921
  # The ARN format of a Contributor Insights rule is
2905
2922
  # `arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name `
2906
2923
  #
2907
- # For more information on ARN format, see [ Resource Types Defined by
2924
+ # For more information about ARN format, see [ Resource Types Defined by
2908
2925
  # Amazon CloudWatch][1] in the *Amazon Web Services General Reference*.
2909
2926
  #
2910
2927
  #
@@ -2945,7 +2962,7 @@ module Aws::CloudWatch
2945
2962
  params: params,
2946
2963
  config: config)
2947
2964
  context[:gem_name] = 'aws-sdk-cloudwatch'
2948
- context[:gem_version] = '1.37.0'
2965
+ context[:gem_version] = '1.42.0'
2949
2966
  Seahorse::Client::Request.new(handlers, context)
2950
2967
  end
2951
2968
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -189,6 +191,7 @@ module Aws::CloudWatch
189
191
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
190
192
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
191
193
  Range = Shapes::StructureShape.new(name: 'Range')
194
+ RecentlyActive = Shapes::StringShape.new(name: 'RecentlyActive')
192
195
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
193
196
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
194
197
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
@@ -565,6 +568,7 @@ module Aws::CloudWatch
565
568
  ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
566
569
  ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
567
570
  ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
571
+ ListMetricsInput.add_member(:recently_active, Shapes::ShapeRef.new(shape: RecentlyActive, location_name: "RecentlyActive"))
568
572
  ListMetricsInput.struct_class = Types::ListMetricsInput
569
573
 
570
574
  ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -288,10 +290,10 @@ module Aws::CloudWatch
288
290
  # The unit for a given metric. If you omit `Unit`, all data that was
289
291
  # collected with any unit is returned, along with the corresponding
290
292
  # units that were specified when the data was reported to CloudWatch. If
291
- # you specify a unit, the operation returns only data data that was
292
- # collected with that unit specified. If you specify a unit that does
293
- # not match the data collected, the results of the operation are null.
294
- # CloudWatch does not perform unit conversions.
293
+ # you specify a unit, the operation returns only data that was collected
294
+ # with that unit specified. If you specify a unit that does not match
295
+ # the data collected, the results of the operation are null. CloudWatch
296
+ # does not perform unit conversions.
295
297
  # @return [Types::GetMetricStatisticsOutput]
296
298
  def get_statistics(options = {})
297
299
  options = options.merge(
@@ -361,8 +363,7 @@ module Aws::CloudWatch
361
363
  # })
362
364
  # @param [Hash] options ({})
363
365
  # @option options [required, String] :alarm_name
364
- # The name for the alarm. This name must be unique within your AWS
365
- # account.
366
+ # The name for the alarm. This name must be unique within the Region.
366
367
  # @option options [String] :alarm_description
367
368
  # The description for the alarm.
368
369
  # @option options [Boolean] :actions_enabled
@@ -452,8 +453,8 @@ module Aws::CloudWatch
452
453
  # resolution, the alarm still attempts to gather data at the period rate
453
454
  # that you specify. In this case, it does not receive data for the
454
455
  # attempts that do not correspond to a one-minute data resolution, and
455
- # the alarm may often lapse into INSUFFICENT\_DATA status. Specifying 10
456
- # or 30 also sets this alarm as a high-resolution alarm, which has a
456
+ # the alarm might often lapse into INSUFFICENT\_DATA status. Specifying
457
+ # 10 or 30 also sets this alarm as a high-resolution alarm, which has a
457
458
  # higher charge than other alarms. For more information about pricing,
458
459
  # see [Amazon CloudWatch Pricing][1].
459
460
  #
@@ -474,12 +475,12 @@ module Aws::CloudWatch
474
475
  #
475
476
  # If you don't specify `Unit`, CloudWatch retrieves all unit types that
476
477
  # have been published for the metric and attempts to evaluate the alarm.
477
- # Usually metrics are published with only one unit, so the alarm will
478
- # work as intended.
478
+ # Usually, metrics are published with only one unit, so the alarm works
479
+ # as intended.
479
480
  #
480
481
  # However, if the metric is published with multiple types of units and
481
- # you don't specify a unit, the alarm's behavior is not defined and
482
- # will behave un-predictably.
482
+ # you don't specify a unit, the alarm's behavior is not defined and it
483
+ # behaves predictably.
483
484
  #
484
485
  # We recommend omitting `Unit` so that you don't inadvertently specify
485
486
  # an incorrect unit that is not published for this metric. Doing so
@@ -569,7 +570,7 @@ module Aws::CloudWatch
569
570
  # associate as many as 50 tags with an alarm.
570
571
  #
571
572
  # Tags can help you organize and categorize your resources. You can also
572
- # use them to scope user permissions, by granting a user permission to
573
+ # use them to scope user permissions by granting a user permission to
573
574
  # access or change only resources with certain tag values.
574
575
  # @option options [String] :threshold_metric_id
575
576
  # If this is an alarm based on an anomaly detection model, make this
@@ -586,7 +587,7 @@ module Aws::CloudWatch
586
587
  namespace: @namespace,
587
588
  metric_name: @name
588
589
  )
589
- resp = @client.put_metric_alarm(options)
590
+ @client.put_metric_alarm(options)
590
591
  Alarm.new(
591
592
  name: options[:alarm_name],
592
593
  client: @client