aws-sdk-cloudwatch 1.57.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcb819b43900010ebf1183d045fc80c19384030d277ac3240efb32624a32f806
4
- data.tar.gz: 667f86fff70b3e5735a887e83cba2b892e7abf34929c4cae9e91fddaab9ab8a1
3
+ metadata.gz: 50ae0923d83ef82d62943fd1785b0e5dab2973ccc1386c9965e6bd390544c2fc
4
+ data.tar.gz: a844300cdf5f1e7f589e8a643849db0836c953dd15a0b4ef009d19620531139c
5
5
  SHA512:
6
- metadata.gz: 31b7c22c0f78674c9a84edad42a26d28287487abc64bd64cc01f26bc18306c49f270d9762c15f2453d05b7bec29e0ad5ee44ddc430627fdd5d1b06ed5f1b95e7
7
- data.tar.gz: bb5a32dd4a0ed21154649ebe060401e3fc44e6176ec7cbef6fd182eee398ae1b7b8b4f73d3b6b76ec6ae3d9fb3d3b0656ca31de52caa0818d1520487c9dd0817
6
+ metadata.gz: 7d26bcd03fd1bee2ac19908fdc8283825539206843ecdf783ff41f4cff225120e54a0035494b9a82a8190f4b460be4390c337b8a0d2ae56f593d043e346e5342
7
+ data.tar.gz: 9ff5dee7a1286a52b46cbe55c742be2686a1b51720c5d2eea11b953985add1ad908a44a3035e9e1eec4942a5c4c510006de57873113676fb413984a618bdc8c0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.61.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.60.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.59.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.58.0 (2021-11-18)
20
+ ------------------
21
+
22
+ * Feature - CloudWatch Anomaly Detection now supports anomaly detectors that use metric math as input.
23
+
4
24
  1.57.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.61.0
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/query.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::CloudWatch
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::Query)
78
82
 
@@ -119,7 +123,9 @@ module Aws::CloudWatch
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::CloudWatch
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -295,7 +305,7 @@ module Aws::CloudWatch
295
305
  # seconds to wait when opening a HTTP session before raising a
296
306
  # `Timeout::Error`.
297
307
  #
298
- # @option options [Integer] :http_read_timeout (60) The default
308
+ # @option options [Float] :http_read_timeout (60) The default
299
309
  # number of seconds to wait for response data. This value can
300
310
  # safely be set per-request on the session.
301
311
  #
@@ -311,6 +321,9 @@ module Aws::CloudWatch
311
321
  # disables this behaviour. This value can safely be set per
312
322
  # request on the session.
313
323
  #
324
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
325
+ # in seconds.
326
+ #
314
327
  # @option options [Boolean] :http_wire_trace (false) When `true`,
315
328
  # HTTP debug output will be sent to the `:logger`.
316
329
  #
@@ -384,33 +397,111 @@ module Aws::CloudWatch
384
397
 
385
398
  # Deletes the specified anomaly detection model from your account.
386
399
  #
387
- # @option params [required, String] :namespace
400
+ # @option params [String] :namespace
388
401
  # The namespace associated with the anomaly detection model to delete.
389
402
  #
390
- # @option params [required, String] :metric_name
403
+ # @option params [String] :metric_name
391
404
  # The metric name associated with the anomaly detection model to delete.
392
405
  #
393
406
  # @option params [Array<Types::Dimension>] :dimensions
394
407
  # The metric dimensions associated with the anomaly detection model to
395
408
  # delete.
396
409
  #
397
- # @option params [required, String] :stat
410
+ # @option params [String] :stat
398
411
  # The statistic associated with the anomaly detection model to delete.
399
412
  #
413
+ # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
414
+ # A single metric anomaly detector to be deleted.
415
+ #
416
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
417
+ # following parameters in the same operation:
418
+ #
419
+ # * `Dimensions`,
420
+ #
421
+ # * `MetricName`
422
+ #
423
+ # * `Namespace`
424
+ #
425
+ # * `Stat`
426
+ #
427
+ # * the `MetricMathAnomalyDetector` parameters of
428
+ # `DeleteAnomalyDetectorInput`
429
+ #
430
+ # Instead, specify the single metric anomaly detector attributes as part
431
+ # of the `SingleMetricAnomalyDetector` property.
432
+ #
433
+ # @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
434
+ # The metric math anomaly detector to be deleted.
435
+ #
436
+ # When using `MetricMathAnomalyDetector`, you cannot include following
437
+ # parameters in the same operation:
438
+ #
439
+ # * `Dimensions`,
440
+ #
441
+ # * `MetricName`
442
+ #
443
+ # * `Namespace`
444
+ #
445
+ # * `Stat`
446
+ #
447
+ # * the `SingleMetricAnomalyDetector` parameters of
448
+ # `DeleteAnomalyDetectorInput`
449
+ #
450
+ # Instead, specify the metric math anomaly detector attributes as part
451
+ # of the `MetricMathAnomalyDetector` property.
452
+ #
400
453
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
401
454
  #
402
455
  # @example Request syntax with placeholder values
403
456
  #
404
457
  # resp = client.delete_anomaly_detector({
405
- # namespace: "Namespace", # required
406
- # metric_name: "MetricName", # required
458
+ # namespace: "Namespace",
459
+ # metric_name: "MetricName",
407
460
  # dimensions: [
408
461
  # {
409
462
  # name: "DimensionName", # required
410
463
  # value: "DimensionValue", # required
411
464
  # },
412
465
  # ],
413
- # stat: "AnomalyDetectorMetricStat", # required
466
+ # stat: "AnomalyDetectorMetricStat",
467
+ # single_metric_anomaly_detector: {
468
+ # namespace: "Namespace",
469
+ # metric_name: "MetricName",
470
+ # dimensions: [
471
+ # {
472
+ # name: "DimensionName", # required
473
+ # value: "DimensionValue", # required
474
+ # },
475
+ # ],
476
+ # stat: "AnomalyDetectorMetricStat",
477
+ # },
478
+ # metric_math_anomaly_detector: {
479
+ # metric_data_queries: [
480
+ # {
481
+ # id: "MetricId", # required
482
+ # metric_stat: {
483
+ # metric: { # required
484
+ # namespace: "Namespace",
485
+ # metric_name: "MetricName",
486
+ # dimensions: [
487
+ # {
488
+ # name: "DimensionName", # required
489
+ # value: "DimensionValue", # required
490
+ # },
491
+ # ],
492
+ # },
493
+ # period: 1, # required
494
+ # stat: "Stat", # required
495
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
496
+ # },
497
+ # expression: "MetricExpression",
498
+ # label: "MetricLabel",
499
+ # return_data: false,
500
+ # period: 1,
501
+ # account_id: "AccountId",
502
+ # },
503
+ # ],
504
+ # },
414
505
  # })
415
506
  #
416
507
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector AWS API Documentation
@@ -517,6 +608,12 @@ module Aws::CloudWatch
517
608
  # CloudWatch retains the history of an alarm even if you delete the
518
609
  # alarm.
519
610
  #
611
+ # To use this operation and return information about a composite alarm,
612
+ # you must be signed on with the `cloudwatch:DescribeAlarmHistory`
613
+ # permission that is scoped to `*`. You can't return information about
614
+ # composite alarms if your `cloudwatch:DescribeAlarmHistory` permission
615
+ # has a narrower scope.
616
+ #
520
617
  # @option params [String] :alarm_name
521
618
  # The name of the alarm.
522
619
  #
@@ -591,6 +688,12 @@ module Aws::CloudWatch
591
688
  # specifying a prefix for the alarm name, the alarm state, or a prefix
592
689
  # for any action.
593
690
  #
691
+ # To use this operation and return information about composite alarms,
692
+ # you must be signed on with the `cloudwatch:DescribeAlarms` permission
693
+ # that is scoped to `*`. You can't return information about composite
694
+ # alarms if your `cloudwatch:DescribeAlarms` permission has a narrower
695
+ # scope.
696
+ #
594
697
  # @option params [Array<String>] :alarm_names
595
698
  # The names of the alarms to retrieve information about.
596
699
  #
@@ -882,9 +985,12 @@ module Aws::CloudWatch
882
985
  end
883
986
 
884
987
  # Lists the anomaly detection models that you have created in your
885
- # account. You can list all models in your account or filter the results
886
- # to only the models that are related to a certain namespace, metric
887
- # name, or metric dimension.
988
+ # account. For single metric anomaly detectors, you can list all of the
989
+ # models in your account or filter the results to only the models that
990
+ # are related to a certain namespace, metric name, or metric dimension.
991
+ # For metric math anomaly detectors, you can list them by adding
992
+ # `METRIC_MATH` to the `AnomalyDetectorTypes` array. This will return
993
+ # all metric math anomaly detectors in your account.
888
994
  #
889
995
  # @option params [String] :next_token
890
996
  # Use the token returned by the previous operation to request the next
@@ -913,6 +1019,11 @@ module Aws::CloudWatch
913
1019
  # metrics that have these dimensions and have anomaly detection models
914
1020
  # associated, they're all returned.
915
1021
  #
1022
+ # @option params [Array<String>] :anomaly_detector_types
1023
+ # The anomaly detector types to request when using
1024
+ # `DescribeAnomalyDetectorsInput`. If empty, defaults to
1025
+ # `SINGLE_METRIC`.
1026
+ #
916
1027
  # @return [Types::DescribeAnomalyDetectorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
917
1028
  #
918
1029
  # * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array&lt;Types::AnomalyDetector&gt;
@@ -931,6 +1042,7 @@ module Aws::CloudWatch
931
1042
  # value: "DimensionValue", # required
932
1043
  # },
933
1044
  # ],
1045
+ # anomaly_detector_types: ["SINGLE_METRIC"], # accepts SINGLE_METRIC, METRIC_MATH
934
1046
  # })
935
1047
  #
936
1048
  # @example Response structure
@@ -947,6 +1059,27 @@ module Aws::CloudWatch
947
1059
  # resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
948
1060
  # resp.anomaly_detectors[0].configuration.metric_timezone #=> String
949
1061
  # resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
1062
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
1063
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
1064
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
1065
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].name #=> String
1066
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].value #=> String
1067
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.stat #=> String
1068
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries #=> Array
1069
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].id #=> String
1070
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.namespace #=> String
1071
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.metric_name #=> String
1072
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
1073
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
1074
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
1075
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.period #=> Integer
1076
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.stat #=> String
1077
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
1078
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].expression #=> String
1079
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].label #=> String
1080
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].return_data #=> Boolean
1081
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].period #=> Integer
1082
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].account_id #=> String
950
1083
  # resp.next_token #=> String
951
1084
  #
952
1085
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors AWS API Documentation
@@ -2096,16 +2229,16 @@ module Aws::CloudWatch
2096
2229
  #
2097
2230
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html
2098
2231
  #
2099
- # @option params [required, String] :namespace
2232
+ # @option params [String] :namespace
2100
2233
  # The namespace of the metric to create the anomaly detection model for.
2101
2234
  #
2102
- # @option params [required, String] :metric_name
2235
+ # @option params [String] :metric_name
2103
2236
  # The name of the metric to create the anomaly detection model for.
2104
2237
  #
2105
2238
  # @option params [Array<Types::Dimension>] :dimensions
2106
2239
  # The metric dimensions to create the anomaly detection model for.
2107
2240
  #
2108
- # @option params [required, String] :stat
2241
+ # @option params [String] :stat
2109
2242
  # The statistic to use for the metric and the anomaly detection model.
2110
2243
  #
2111
2244
  # @option params [Types::AnomalyDetectorConfiguration] :configuration
@@ -2116,20 +2249,60 @@ module Aws::CloudWatch
2116
2249
  # The configuration can also include the time zone to use for the
2117
2250
  # metric.
2118
2251
  #
2252
+ # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
2253
+ # A single metric anomaly detector to be created.
2254
+ #
2255
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
2256
+ # following parameters in the same operation:
2257
+ #
2258
+ # * `Dimensions`
2259
+ #
2260
+ # * `MetricName`
2261
+ #
2262
+ # * `Namespace`
2263
+ #
2264
+ # * `Stat`
2265
+ #
2266
+ # * the `MetricMatchAnomalyDetector` parameters of
2267
+ # `PutAnomalyDetectorInput`
2268
+ #
2269
+ # Instead, specify the single metric anomaly detector attributes as part
2270
+ # of the property `SingleMetricAnomalyDetector`.
2271
+ #
2272
+ # @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
2273
+ # The metric math anomaly detector to be created.
2274
+ #
2275
+ # When using `MetricMathAnomalyDetector`, you cannot include the
2276
+ # following parameters in the same operation:
2277
+ #
2278
+ # * `Dimensions`
2279
+ #
2280
+ # * `MetricName`
2281
+ #
2282
+ # * `Namespace`
2283
+ #
2284
+ # * `Stat`
2285
+ #
2286
+ # * the `SingleMetricAnomalyDetector` parameters of
2287
+ # `PutAnomalyDetectorInput`
2288
+ #
2289
+ # Instead, specify the metric math anomaly detector attributes as part
2290
+ # of the property `MetricMathAnomalyDetector`.
2291
+ #
2119
2292
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2120
2293
  #
2121
2294
  # @example Request syntax with placeholder values
2122
2295
  #
2123
2296
  # resp = client.put_anomaly_detector({
2124
- # namespace: "Namespace", # required
2125
- # metric_name: "MetricName", # required
2297
+ # namespace: "Namespace",
2298
+ # metric_name: "MetricName",
2126
2299
  # dimensions: [
2127
2300
  # {
2128
2301
  # name: "DimensionName", # required
2129
2302
  # value: "DimensionValue", # required
2130
2303
  # },
2131
2304
  # ],
2132
- # stat: "AnomalyDetectorMetricStat", # required
2305
+ # stat: "AnomalyDetectorMetricStat",
2133
2306
  # configuration: {
2134
2307
  # excluded_time_ranges: [
2135
2308
  # {
@@ -2139,6 +2312,44 @@ module Aws::CloudWatch
2139
2312
  # ],
2140
2313
  # metric_timezone: "AnomalyDetectorMetricTimezone",
2141
2314
  # },
2315
+ # single_metric_anomaly_detector: {
2316
+ # namespace: "Namespace",
2317
+ # metric_name: "MetricName",
2318
+ # dimensions: [
2319
+ # {
2320
+ # name: "DimensionName", # required
2321
+ # value: "DimensionValue", # required
2322
+ # },
2323
+ # ],
2324
+ # stat: "AnomalyDetectorMetricStat",
2325
+ # },
2326
+ # metric_math_anomaly_detector: {
2327
+ # metric_data_queries: [
2328
+ # {
2329
+ # id: "MetricId", # required
2330
+ # metric_stat: {
2331
+ # metric: { # required
2332
+ # namespace: "Namespace",
2333
+ # metric_name: "MetricName",
2334
+ # dimensions: [
2335
+ # {
2336
+ # name: "DimensionName", # required
2337
+ # value: "DimensionValue", # required
2338
+ # },
2339
+ # ],
2340
+ # },
2341
+ # period: 1, # required
2342
+ # stat: "Stat", # required
2343
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
2344
+ # },
2345
+ # expression: "MetricExpression",
2346
+ # label: "MetricLabel",
2347
+ # return_data: false,
2348
+ # period: 1,
2349
+ # account_id: "AccountId",
2350
+ # },
2351
+ # ],
2352
+ # },
2142
2353
  # })
2143
2354
  #
2144
2355
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector AWS API Documentation
@@ -2196,6 +2407,11 @@ module Aws::CloudWatch
2196
2407
  # the update completely overwrites the previous configuration of the
2197
2408
  # alarm.
2198
2409
  #
2410
+ # To use this operation, you must be signed on with the
2411
+ # `cloudwatch:PutCompositeAlarm` permission that is scoped to `*`. You
2412
+ # can't create a composite alarms if your
2413
+ # `cloudwatch:PutCompositeAlarm` permission has a narrower scope.
2414
+ #
2199
2415
  # If you are an IAM user, you must have `iam:CreateServiceLinkedRole` to
2200
2416
  # create a composite alarm that has Systems Manager OpsItem actions.
2201
2417
  #
@@ -2488,12 +2704,12 @@ module Aws::CloudWatch
2488
2704
  # * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
2489
2705
  # Manager OpsItem actions.
2490
2706
  #
2491
- # The first time you create an alarm in the Management Console, the CLI,
2492
- # or by using the PutMetricAlarm API, CloudWatch creates the necessary
2493
- # service-linked role for you. The service-linked roles are called
2494
- # `AWSServiceRoleForCloudWatchEvents` and
2495
- # `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more information,
2496
- # see [Amazon Web Services service-linked role][1].
2707
+ # The first time you create an alarm in the Amazon Web Services
2708
+ # Management Console, the CLI, or by using the PutMetricAlarm API,
2709
+ # CloudWatch creates the necessary service-linked role for you. The
2710
+ # service-linked roles are called `AWSServiceRoleForCloudWatchEvents`
2711
+ # and `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
2712
+ # information, see [Amazon Web Services service-linked role][1].
2497
2713
  #
2498
2714
  # **Cross-account alarms**
2499
2715
  #
@@ -2995,7 +3211,7 @@ module Aws::CloudWatch
2995
3211
  #
2996
3212
  #
2997
3213
  #
2998
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
3214
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html
2999
3215
  #
3000
3216
  # @option params [required, String] :name
3001
3217
  # If you are creating a new metric stream, this is the name for the new
@@ -3336,7 +3552,7 @@ module Aws::CloudWatch
3336
3552
  params: params,
3337
3553
  config: config)
3338
3554
  context[:gem_name] = 'aws-sdk-cloudwatch'
3339
- context[:gem_version] = '1.57.0'
3555
+ context[:gem_version] = '1.61.0'
3340
3556
  Seahorse::Client::Request.new(handlers, context)
3341
3557
  end
3342
3558
 
@@ -33,6 +33,8 @@ module Aws::CloudWatch
33
33
  AnomalyDetectorMetricStat = Shapes::StringShape.new(name: 'AnomalyDetectorMetricStat')
34
34
  AnomalyDetectorMetricTimezone = Shapes::StringShape.new(name: 'AnomalyDetectorMetricTimezone')
35
35
  AnomalyDetectorStateValue = Shapes::StringShape.new(name: 'AnomalyDetectorStateValue')
36
+ AnomalyDetectorType = Shapes::StringShape.new(name: 'AnomalyDetectorType')
37
+ AnomalyDetectorTypes = Shapes::ListShape.new(name: 'AnomalyDetectorTypes')
36
38
  AnomalyDetectors = Shapes::ListShape.new(name: 'AnomalyDetectors')
37
39
  AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
38
40
  BatchFailures = Shapes::ListShape.new(name: 'BatchFailures')
@@ -180,6 +182,7 @@ module Aws::CloudWatch
180
182
  MetricExpression = Shapes::StringShape.new(name: 'MetricExpression')
181
183
  MetricId = Shapes::StringShape.new(name: 'MetricId')
182
184
  MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
185
+ MetricMathAnomalyDetector = Shapes::StructureShape.new(name: 'MetricMathAnomalyDetector')
183
186
  MetricName = Shapes::StringShape.new(name: 'MetricName')
184
187
  MetricStat = Shapes::StructureShape.new(name: 'MetricStat')
185
188
  MetricStreamEntries = Shapes::ListShape.new(name: 'MetricStreamEntries')
@@ -221,6 +224,7 @@ module Aws::CloudWatch
221
224
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
222
225
  ScanBy = Shapes::StringShape.new(name: 'ScanBy')
223
226
  SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
227
+ SingleMetricAnomalyDetector = Shapes::StructureShape.new(name: 'SingleMetricAnomalyDetector')
224
228
  Size = Shapes::IntegerShape.new(name: 'Size')
225
229
  StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
226
230
  StartMetricStreamsInput = Shapes::StructureShape.new(name: 'StartMetricStreamsInput')
@@ -265,12 +269,14 @@ module Aws::CloudWatch
265
269
 
266
270
  AlarmTypes.member = Shapes::ShapeRef.new(shape: AlarmType)
267
271
 
268
- AnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
269
- AnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
270
- AnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
271
- AnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, location_name: "Stat"))
272
+ AnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, deprecated: true, location_name: "Namespace", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.Namespace property."}))
273
+ AnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, deprecated: true, location_name: "MetricName", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.MetricName property."}))
274
+ AnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.Dimensions property."}))
275
+ AnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.Stat property."}))
272
276
  AnomalyDetector.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
273
277
  AnomalyDetector.add_member(:state_value, Shapes::ShapeRef.new(shape: AnomalyDetectorStateValue, location_name: "StateValue"))
278
+ AnomalyDetector.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
279
+ AnomalyDetector.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
274
280
  AnomalyDetector.struct_class = Types::AnomalyDetector
275
281
 
276
282
  AnomalyDetectorConfiguration.add_member(:excluded_time_ranges, Shapes::ShapeRef.new(shape: AnomalyDetectorExcludedTimeRanges, location_name: "ExcludedTimeRanges"))
@@ -279,6 +285,8 @@ module Aws::CloudWatch
279
285
 
280
286
  AnomalyDetectorExcludedTimeRanges.member = Shapes::ShapeRef.new(shape: Range)
281
287
 
288
+ AnomalyDetectorTypes.member = Shapes::ShapeRef.new(shape: AnomalyDetectorType)
289
+
282
290
  AnomalyDetectors.member = Shapes::ShapeRef.new(shape: AnomalyDetector)
283
291
 
284
292
  BatchFailures.member = Shapes::ShapeRef.new(shape: PartialFailure)
@@ -347,10 +355,12 @@ module Aws::CloudWatch
347
355
  DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
348
356
  DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
349
357
 
350
- DeleteAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
351
- DeleteAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
352
- DeleteAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
353
- DeleteAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, required: true, location_name: "Stat"))
358
+ DeleteAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, deprecated: true, location_name: "Namespace", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
359
+ DeleteAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, deprecated: true, location_name: "MetricName", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
360
+ DeleteAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
361
+ DeleteAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
362
+ DeleteAnomalyDetectorInput.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
363
+ DeleteAnomalyDetectorInput.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
354
364
  DeleteAnomalyDetectorInput.struct_class = Types::DeleteAnomalyDetectorInput
355
365
 
356
366
  DeleteAnomalyDetectorOutput.struct_class = Types::DeleteAnomalyDetectorOutput
@@ -418,6 +428,7 @@ module Aws::CloudWatch
418
428
  DescribeAnomalyDetectorsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
419
429
  DescribeAnomalyDetectorsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
420
430
  DescribeAnomalyDetectorsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
431
+ DescribeAnomalyDetectorsInput.add_member(:anomaly_detector_types, Shapes::ShapeRef.new(shape: AnomalyDetectorTypes, location_name: "AnomalyDetectorTypes"))
421
432
  DescribeAnomalyDetectorsInput.struct_class = Types::DescribeAnomalyDetectorsInput
422
433
 
423
434
  DescribeAnomalyDetectorsOutput.add_member(:anomaly_detectors, Shapes::ShapeRef.new(shape: AnomalyDetectors, location_name: "AnomalyDetectors"))
@@ -713,6 +724,9 @@ module Aws::CloudWatch
713
724
  MetricDatum.add_member(:storage_resolution, Shapes::ShapeRef.new(shape: StorageResolution, location_name: "StorageResolution"))
714
725
  MetricDatum.struct_class = Types::MetricDatum
715
726
 
727
+ MetricMathAnomalyDetector.add_member(:metric_data_queries, Shapes::ShapeRef.new(shape: MetricDataQueries, location_name: "MetricDataQueries"))
728
+ MetricMathAnomalyDetector.struct_class = Types::MetricMathAnomalyDetector
729
+
716
730
  MetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
717
731
  MetricStat.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
718
732
  MetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: Stat, required: true, location_name: "Stat"))
@@ -748,11 +762,13 @@ module Aws::CloudWatch
748
762
  PartialFailure.add_member(:failure_description, Shapes::ShapeRef.new(shape: FailureDescription, location_name: "FailureDescription"))
749
763
  PartialFailure.struct_class = Types::PartialFailure
750
764
 
751
- PutAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
752
- PutAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
753
- PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
754
- PutAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, required: true, location_name: "Stat"))
765
+ PutAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, deprecated: true, location_name: "Namespace", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
766
+ PutAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, deprecated: true, location_name: "MetricName", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
767
+ PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
768
+ PutAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
755
769
  PutAnomalyDetectorInput.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
770
+ PutAnomalyDetectorInput.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
771
+ PutAnomalyDetectorInput.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
756
772
  PutAnomalyDetectorInput.struct_class = Types::PutAnomalyDetectorInput
757
773
 
758
774
  PutAnomalyDetectorOutput.struct_class = Types::PutAnomalyDetectorOutput
@@ -841,6 +857,12 @@ module Aws::CloudWatch
841
857
  SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
842
858
  SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
843
859
 
860
+ SingleMetricAnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
861
+ SingleMetricAnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
862
+ SingleMetricAnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
863
+ SingleMetricAnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, location_name: "Stat"))
864
+ SingleMetricAnomalyDetector.struct_class = Types::SingleMetricAnomalyDetector
865
+
844
866
  StartMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
845
867
  StartMetricStreamsInput.struct_class = Types::StartMetricStreamsInput
846
868
 
@@ -920,6 +942,7 @@ module Aws::CloudWatch
920
942
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
921
943
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
922
944
  o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
945
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
923
946
  end)
924
947
 
925
948
  api.add_operation(:delete_dashboards, Seahorse::Model::Operation.new.tap do |o|
@@ -1001,6 +1024,7 @@ module Aws::CloudWatch
1001
1024
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1002
1025
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1003
1026
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1027
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1004
1028
  end)
1005
1029
 
1006
1030
  api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
@@ -1194,6 +1218,7 @@ module Aws::CloudWatch
1194
1218
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1195
1219
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1196
1220
  o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1221
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1197
1222
  end)
1198
1223
 
1199
1224
  api.add_operation(:put_composite_alarm, Seahorse::Model::Operation.new.tap do |o|
@@ -50,8 +50,8 @@ module Aws::CloudWatch
50
50
  end
51
51
 
52
52
  # An anomaly detection model associated with a particular CloudWatch
53
- # metric and statistic. You can use the model to display a band of
54
- # expected normal values when the metric is graphed.
53
+ # metric, statistic, or metric math expression. You can use the model to
54
+ # display a band of expected, normal values when the metric is graphed.
55
55
  #
56
56
  # @!attribute [rw] namespace
57
57
  # The namespace of the metric associated with the anomaly detection
@@ -81,6 +81,14 @@ module Aws::CloudWatch
81
81
  # values are `TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA`
82
82
  # @return [String]
83
83
  #
84
+ # @!attribute [rw] single_metric_anomaly_detector
85
+ # The CloudWatch metric and statistic for this anomaly detector.
86
+ # @return [Types::SingleMetricAnomalyDetector]
87
+ #
88
+ # @!attribute [rw] metric_math_anomaly_detector
89
+ # The CloudWatch metric math expression for this anomaly detector.
90
+ # @return [Types::MetricMathAnomalyDetector]
91
+ #
84
92
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/AnomalyDetector AWS API Documentation
85
93
  #
86
94
  class AnomalyDetector < Struct.new(
@@ -89,7 +97,9 @@ module Aws::CloudWatch
89
97
  :dimensions,
90
98
  :stat,
91
99
  :configuration,
92
- :state_value)
100
+ :state_value,
101
+ :single_metric_anomaly_detector,
102
+ :metric_math_anomaly_detector)
93
103
  SENSITIVE = []
94
104
  include Aws::Structure
95
105
  end
@@ -382,15 +392,53 @@ module Aws::CloudWatch
382
392
  # data as a hash:
383
393
  #
384
394
  # {
385
- # namespace: "Namespace", # required
386
- # metric_name: "MetricName", # required
395
+ # namespace: "Namespace",
396
+ # metric_name: "MetricName",
387
397
  # dimensions: [
388
398
  # {
389
399
  # name: "DimensionName", # required
390
400
  # value: "DimensionValue", # required
391
401
  # },
392
402
  # ],
393
- # stat: "AnomalyDetectorMetricStat", # required
403
+ # stat: "AnomalyDetectorMetricStat",
404
+ # single_metric_anomaly_detector: {
405
+ # namespace: "Namespace",
406
+ # metric_name: "MetricName",
407
+ # dimensions: [
408
+ # {
409
+ # name: "DimensionName", # required
410
+ # value: "DimensionValue", # required
411
+ # },
412
+ # ],
413
+ # stat: "AnomalyDetectorMetricStat",
414
+ # },
415
+ # metric_math_anomaly_detector: {
416
+ # metric_data_queries: [
417
+ # {
418
+ # id: "MetricId", # required
419
+ # metric_stat: {
420
+ # metric: { # required
421
+ # namespace: "Namespace",
422
+ # metric_name: "MetricName",
423
+ # dimensions: [
424
+ # {
425
+ # name: "DimensionName", # required
426
+ # value: "DimensionValue", # required
427
+ # },
428
+ # ],
429
+ # },
430
+ # period: 1, # required
431
+ # stat: "Stat", # required
432
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
433
+ # },
434
+ # expression: "MetricExpression",
435
+ # label: "MetricLabel",
436
+ # return_data: false,
437
+ # period: 1,
438
+ # account_id: "AccountId",
439
+ # },
440
+ # ],
441
+ # },
394
442
  # }
395
443
  #
396
444
  # @!attribute [rw] namespace
@@ -411,13 +459,57 @@ module Aws::CloudWatch
411
459
  # The statistic associated with the anomaly detection model to delete.
412
460
  # @return [String]
413
461
  #
462
+ # @!attribute [rw] single_metric_anomaly_detector
463
+ # A single metric anomaly detector to be deleted.
464
+ #
465
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
466
+ # following parameters in the same operation:
467
+ #
468
+ # * `Dimensions`,
469
+ #
470
+ # * `MetricName`
471
+ #
472
+ # * `Namespace`
473
+ #
474
+ # * `Stat`
475
+ #
476
+ # * the `MetricMathAnomalyDetector` parameters of
477
+ # `DeleteAnomalyDetectorInput`
478
+ #
479
+ # Instead, specify the single metric anomaly detector attributes as
480
+ # part of the `SingleMetricAnomalyDetector` property.
481
+ # @return [Types::SingleMetricAnomalyDetector]
482
+ #
483
+ # @!attribute [rw] metric_math_anomaly_detector
484
+ # The metric math anomaly detector to be deleted.
485
+ #
486
+ # When using `MetricMathAnomalyDetector`, you cannot include following
487
+ # parameters in the same operation:
488
+ #
489
+ # * `Dimensions`,
490
+ #
491
+ # * `MetricName`
492
+ #
493
+ # * `Namespace`
494
+ #
495
+ # * `Stat`
496
+ #
497
+ # * the `SingleMetricAnomalyDetector` parameters of
498
+ # `DeleteAnomalyDetectorInput`
499
+ #
500
+ # Instead, specify the metric math anomaly detector attributes as part
501
+ # of the `MetricMathAnomalyDetector` property.
502
+ # @return [Types::MetricMathAnomalyDetector]
503
+ #
414
504
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetectorInput AWS API Documentation
415
505
  #
416
506
  class DeleteAnomalyDetectorInput < Struct.new(
417
507
  :namespace,
418
508
  :metric_name,
419
509
  :dimensions,
420
- :stat)
510
+ :stat,
511
+ :single_metric_anomaly_detector,
512
+ :metric_math_anomaly_detector)
421
513
  SENSITIVE = []
422
514
  include Aws::Structure
423
515
  end
@@ -821,6 +913,7 @@ module Aws::CloudWatch
821
913
  # value: "DimensionValue", # required
822
914
  # },
823
915
  # ],
916
+ # anomaly_detector_types: ["SINGLE_METRIC"], # accepts SINGLE_METRIC, METRIC_MATH
824
917
  # }
825
918
  #
826
919
  # @!attribute [rw] next_token
@@ -855,6 +948,12 @@ module Aws::CloudWatch
855
948
  # detection models associated, they're all returned.
856
949
  # @return [Array<Types::Dimension>]
857
950
  #
951
+ # @!attribute [rw] anomaly_detector_types
952
+ # The anomaly detector types to request when using
953
+ # `DescribeAnomalyDetectorsInput`. If empty, defaults to
954
+ # `SINGLE_METRIC`.
955
+ # @return [Array<String>]
956
+ #
858
957
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectorsInput AWS API Documentation
859
958
  #
860
959
  class DescribeAnomalyDetectorsInput < Struct.new(
@@ -862,7 +961,8 @@ module Aws::CloudWatch
862
961
  :max_results,
863
962
  :namespace,
864
963
  :metric_name,
865
- :dimensions)
964
+ :dimensions,
965
+ :anomaly_detector_types)
866
966
  SENSITIVE = []
867
967
  include Aws::Structure
868
968
  end
@@ -1786,7 +1886,13 @@ module Aws::CloudWatch
1786
1886
  end
1787
1887
 
1788
1888
  # This structure contains the definition for a Contributor Insights
1789
- # rule.
1889
+ # rule. For more information about this rule, see[ Using Constributor
1890
+ # Insights to analyze high-cardinality data][1] in the *Amazon
1891
+ # CloudWatch User Guide*.
1892
+ #
1893
+ #
1894
+ #
1895
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html
1790
1896
  #
1791
1897
  # @!attribute [rw] name
1792
1898
  # The name of the rule.
@@ -1798,7 +1904,7 @@ module Aws::CloudWatch
1798
1904
  #
1799
1905
  # @!attribute [rw] schema
1800
1906
  # For rules that you create, this is always `\{"Name":
1801
- # "CloudWatchLogRule", "Version": 1\}`. For built-in rules, this is
1907
+ # "CloudWatchLogRule", "Version": 1\}`. For managed rules, this is
1802
1908
  # `\{"Name": "ServiceLogRule", "Version": 1\}`
1803
1909
  # @return [String]
1804
1910
  #
@@ -2876,6 +2982,61 @@ module Aws::CloudWatch
2876
2982
  include Aws::Structure
2877
2983
  end
2878
2984
 
2985
+ # Indicates the CloudWatch math expression that provides the time series
2986
+ # the anomaly detector uses as input. The designated math expression
2987
+ # must return a single time series.
2988
+ #
2989
+ # @note When making an API call, you may pass MetricMathAnomalyDetector
2990
+ # data as a hash:
2991
+ #
2992
+ # {
2993
+ # metric_data_queries: [
2994
+ # {
2995
+ # id: "MetricId", # required
2996
+ # metric_stat: {
2997
+ # metric: { # required
2998
+ # namespace: "Namespace",
2999
+ # metric_name: "MetricName",
3000
+ # dimensions: [
3001
+ # {
3002
+ # name: "DimensionName", # required
3003
+ # value: "DimensionValue", # required
3004
+ # },
3005
+ # ],
3006
+ # },
3007
+ # period: 1, # required
3008
+ # stat: "Stat", # required
3009
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
3010
+ # },
3011
+ # expression: "MetricExpression",
3012
+ # label: "MetricLabel",
3013
+ # return_data: false,
3014
+ # period: 1,
3015
+ # account_id: "AccountId",
3016
+ # },
3017
+ # ],
3018
+ # }
3019
+ #
3020
+ # @!attribute [rw] metric_data_queries
3021
+ # An array of metric data query structures that enables you to create
3022
+ # an anomaly detector based on the result of a metric math expression.
3023
+ # Each item in `MetricDataQueries` gets a metric or performs a math
3024
+ # expression. One item in `MetricDataQueries` is the expression that
3025
+ # provides the time series that the anomaly detector uses as input.
3026
+ # Designate the expression by setting `ReturnData` to `True` for this
3027
+ # object in the array. For all other expressions and metrics, set
3028
+ # `ReturnData` to `False`. The designated expression must return a
3029
+ # single time series.
3030
+ # @return [Array<Types::MetricDataQuery>]
3031
+ #
3032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricMathAnomalyDetector AWS API Documentation
3033
+ #
3034
+ class MetricMathAnomalyDetector < Struct.new(
3035
+ :metric_data_queries)
3036
+ SENSITIVE = []
3037
+ include Aws::Structure
3038
+ end
3039
+
2879
3040
  # This structure defines the metric to be returned, along with the
2880
3041
  # statistics, period, and units.
2881
3042
  #
@@ -3075,15 +3236,15 @@ module Aws::CloudWatch
3075
3236
  # data as a hash:
3076
3237
  #
3077
3238
  # {
3078
- # namespace: "Namespace", # required
3079
- # metric_name: "MetricName", # required
3239
+ # namespace: "Namespace",
3240
+ # metric_name: "MetricName",
3080
3241
  # dimensions: [
3081
3242
  # {
3082
3243
  # name: "DimensionName", # required
3083
3244
  # value: "DimensionValue", # required
3084
3245
  # },
3085
3246
  # ],
3086
- # stat: "AnomalyDetectorMetricStat", # required
3247
+ # stat: "AnomalyDetectorMetricStat",
3087
3248
  # configuration: {
3088
3249
  # excluded_time_ranges: [
3089
3250
  # {
@@ -3093,6 +3254,44 @@ module Aws::CloudWatch
3093
3254
  # ],
3094
3255
  # metric_timezone: "AnomalyDetectorMetricTimezone",
3095
3256
  # },
3257
+ # single_metric_anomaly_detector: {
3258
+ # namespace: "Namespace",
3259
+ # metric_name: "MetricName",
3260
+ # dimensions: [
3261
+ # {
3262
+ # name: "DimensionName", # required
3263
+ # value: "DimensionValue", # required
3264
+ # },
3265
+ # ],
3266
+ # stat: "AnomalyDetectorMetricStat",
3267
+ # },
3268
+ # metric_math_anomaly_detector: {
3269
+ # metric_data_queries: [
3270
+ # {
3271
+ # id: "MetricId", # required
3272
+ # metric_stat: {
3273
+ # metric: { # required
3274
+ # namespace: "Namespace",
3275
+ # metric_name: "MetricName",
3276
+ # dimensions: [
3277
+ # {
3278
+ # name: "DimensionName", # required
3279
+ # value: "DimensionValue", # required
3280
+ # },
3281
+ # ],
3282
+ # },
3283
+ # period: 1, # required
3284
+ # stat: "Stat", # required
3285
+ # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
3286
+ # },
3287
+ # expression: "MetricExpression",
3288
+ # label: "MetricLabel",
3289
+ # return_data: false,
3290
+ # period: 1,
3291
+ # account_id: "AccountId",
3292
+ # },
3293
+ # ],
3294
+ # },
3096
3295
  # }
3097
3296
  #
3098
3297
  # @!attribute [rw] namespace
@@ -3122,6 +3321,48 @@ module Aws::CloudWatch
3122
3321
  # metric.
3123
3322
  # @return [Types::AnomalyDetectorConfiguration]
3124
3323
  #
3324
+ # @!attribute [rw] single_metric_anomaly_detector
3325
+ # A single metric anomaly detector to be created.
3326
+ #
3327
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
3328
+ # following parameters in the same operation:
3329
+ #
3330
+ # * `Dimensions`
3331
+ #
3332
+ # * `MetricName`
3333
+ #
3334
+ # * `Namespace`
3335
+ #
3336
+ # * `Stat`
3337
+ #
3338
+ # * the `MetricMatchAnomalyDetector` parameters of
3339
+ # `PutAnomalyDetectorInput`
3340
+ #
3341
+ # Instead, specify the single metric anomaly detector attributes as
3342
+ # part of the property `SingleMetricAnomalyDetector`.
3343
+ # @return [Types::SingleMetricAnomalyDetector]
3344
+ #
3345
+ # @!attribute [rw] metric_math_anomaly_detector
3346
+ # The metric math anomaly detector to be created.
3347
+ #
3348
+ # When using `MetricMathAnomalyDetector`, you cannot include the
3349
+ # following parameters in the same operation:
3350
+ #
3351
+ # * `Dimensions`
3352
+ #
3353
+ # * `MetricName`
3354
+ #
3355
+ # * `Namespace`
3356
+ #
3357
+ # * `Stat`
3358
+ #
3359
+ # * the `SingleMetricAnomalyDetector` parameters of
3360
+ # `PutAnomalyDetectorInput`
3361
+ #
3362
+ # Instead, specify the metric math anomaly detector attributes as part
3363
+ # of the property `MetricMathAnomalyDetector`.
3364
+ # @return [Types::MetricMathAnomalyDetector]
3365
+ #
3125
3366
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetectorInput AWS API Documentation
3126
3367
  #
3127
3368
  class PutAnomalyDetectorInput < Struct.new(
@@ -3129,7 +3370,9 @@ module Aws::CloudWatch
3129
3370
  :metric_name,
3130
3371
  :dimensions,
3131
3372
  :stat,
3132
- :configuration)
3373
+ :configuration,
3374
+ :single_metric_anomaly_detector,
3375
+ :metric_math_anomaly_detector)
3133
3376
  SENSITIVE = []
3134
3377
  include Aws::Structure
3135
3378
  end
@@ -4074,6 +4317,52 @@ module Aws::CloudWatch
4074
4317
  include Aws::Structure
4075
4318
  end
4076
4319
 
4320
+ # Designates the CloudWatch metric and statistic that provides the time
4321
+ # series the anomaly detector uses as input.
4322
+ #
4323
+ # @note When making an API call, you may pass SingleMetricAnomalyDetector
4324
+ # data as a hash:
4325
+ #
4326
+ # {
4327
+ # namespace: "Namespace",
4328
+ # metric_name: "MetricName",
4329
+ # dimensions: [
4330
+ # {
4331
+ # name: "DimensionName", # required
4332
+ # value: "DimensionValue", # required
4333
+ # },
4334
+ # ],
4335
+ # stat: "AnomalyDetectorMetricStat",
4336
+ # }
4337
+ #
4338
+ # @!attribute [rw] namespace
4339
+ # The namespace of the metric to create the anomaly detection model
4340
+ # for.
4341
+ # @return [String]
4342
+ #
4343
+ # @!attribute [rw] metric_name
4344
+ # The name of the metric to create the anomaly detection model for.
4345
+ # @return [String]
4346
+ #
4347
+ # @!attribute [rw] dimensions
4348
+ # The metric dimensions to create the anomaly detection model for.
4349
+ # @return [Array<Types::Dimension>]
4350
+ #
4351
+ # @!attribute [rw] stat
4352
+ # The statistic to use for the metric and anomaly detection model.
4353
+ # @return [String]
4354
+ #
4355
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SingleMetricAnomalyDetector AWS API Documentation
4356
+ #
4357
+ class SingleMetricAnomalyDetector < Struct.new(
4358
+ :namespace,
4359
+ :metric_name,
4360
+ :dimensions,
4361
+ :stat)
4362
+ SENSITIVE = []
4363
+ include Aws::Structure
4364
+ end
4365
+
4077
4366
  # @note When making an API call, you may pass StartMetricStreamsInput
4078
4367
  # data as a hash:
4079
4368
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
52
52
  # @!group service
53
53
  module Aws::CloudWatch
54
54
 
55
- GEM_VERSION = '1.57.0'
55
+ GEM_VERSION = '1.61.0'
56
56
 
57
57
  end
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.57.0
4
+ version: 1.61.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: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.122.0
22
+ version: 3.126.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.122.0
32
+ version: 3.126.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement