aws-sdk-cloudwatch 1.55.0 → 1.59.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: 7c7a309517a4076bc34d6a450fcf33399765e001890131712b8025b0b30833e7
4
- data.tar.gz: bdea2854dbe1f914292ddd2f8b2b6c3abf3eb686b7c130bd5149b522a3a4be6c
3
+ metadata.gz: 93a8b21173bec4c984b643b2d65ad2666fd2298f91f74e437b700a1bce40c8d2
4
+ data.tar.gz: 6bf3404cda9bd98906357a90b3c4579645cd76920ecbe530ae04042c65a11e5d
5
5
  SHA512:
6
- metadata.gz: 9b2f869c25acbd2b08310d8586b9c6a3dbf4a3e4f10215d4d88e4aae2c8d6cd5944504be8eca35c91fa2a7eef70d07f42f3142e7ff9705fc26a28d9b4ba279de
7
- data.tar.gz: 95584db9103fe6b3f78e8c1b8812b89fb6ee8d4e82cbfd876bf5ae2c2ad46b2c1d579a9a26c465fee2044afd8db18415f4fc54f706499a0183d44e853cbc9e7b
6
+ metadata.gz: be80bbde73c19dc2b848ecc8733c9ec2e960829dd5ba9e919c0afa655cb2d30a2ecaaf7810a492511cfaeb2d06a3e344e96f3fc5c3c2111f779f5488d963920e
7
+ data.tar.gz: 13f63777fbe9b944577cc40d48753e5adca64cf5cd518f54ad3475d09fb1b49259afe0e836ada26449b36b098712e30815960e80990b7d3c7349851568b34737
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.59.0 (2021-11-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.58.0 (2021-11-18)
10
+ ------------------
11
+
12
+ * Feature - CloudWatch Anomaly Detection now supports anomaly detectors that use metric math as input.
13
+
14
+ 1.57.0 (2021-11-04)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.56.0 (2021-10-18)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.55.0 (2021-09-01)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.55.0
1
+ 1.59.0
@@ -119,7 +119,9 @@ module Aws::CloudWatch
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -275,6 +277,15 @@ module Aws::CloudWatch
275
277
  # ** Please note ** When response stubbing is enabled, no HTTP
276
278
  # requests are made, and retries are disabled.
277
279
  #
280
+ # @option options [Boolean] :use_dualstack_endpoint
281
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
282
+ # will be used if available.
283
+ #
284
+ # @option options [Boolean] :use_fips_endpoint
285
+ # When set to `true`, fips compatible endpoints will be used if available.
286
+ # When a `fips` region is used, the region is normalized and this config
287
+ # is set to `true`.
288
+ #
278
289
  # @option options [Boolean] :validate_params (true)
279
290
  # When `true`, request parameters are validated before
280
291
  # sending the request.
@@ -375,33 +386,111 @@ module Aws::CloudWatch
375
386
 
376
387
  # Deletes the specified anomaly detection model from your account.
377
388
  #
378
- # @option params [required, String] :namespace
389
+ # @option params [String] :namespace
379
390
  # The namespace associated with the anomaly detection model to delete.
380
391
  #
381
- # @option params [required, String] :metric_name
392
+ # @option params [String] :metric_name
382
393
  # The metric name associated with the anomaly detection model to delete.
383
394
  #
384
395
  # @option params [Array<Types::Dimension>] :dimensions
385
396
  # The metric dimensions associated with the anomaly detection model to
386
397
  # delete.
387
398
  #
388
- # @option params [required, String] :stat
399
+ # @option params [String] :stat
389
400
  # The statistic associated with the anomaly detection model to delete.
390
401
  #
402
+ # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
403
+ # A single metric anomaly detector to be deleted.
404
+ #
405
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
406
+ # following parameters in the same operation:
407
+ #
408
+ # * `Dimensions`,
409
+ #
410
+ # * `MetricName`
411
+ #
412
+ # * `Namespace`
413
+ #
414
+ # * `Stat`
415
+ #
416
+ # * the `MetricMathAnomalyDetector` parameters of
417
+ # `DeleteAnomalyDetectorInput`
418
+ #
419
+ # Instead, specify the single metric anomaly detector attributes as part
420
+ # of the `SingleMetricAnomalyDetector` property.
421
+ #
422
+ # @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
423
+ # The metric math anomaly detector to be deleted.
424
+ #
425
+ # When using `MetricMathAnomalyDetector`, you cannot include following
426
+ # parameters in the same operation:
427
+ #
428
+ # * `Dimensions`,
429
+ #
430
+ # * `MetricName`
431
+ #
432
+ # * `Namespace`
433
+ #
434
+ # * `Stat`
435
+ #
436
+ # * the `SingleMetricAnomalyDetector` parameters of
437
+ # `DeleteAnomalyDetectorInput`
438
+ #
439
+ # Instead, specify the metric math anomaly detector attributes as part
440
+ # of the `MetricMathAnomalyDetector` property.
441
+ #
391
442
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
392
443
  #
393
444
  # @example Request syntax with placeholder values
394
445
  #
395
446
  # resp = client.delete_anomaly_detector({
396
- # namespace: "Namespace", # required
397
- # metric_name: "MetricName", # required
447
+ # namespace: "Namespace",
448
+ # metric_name: "MetricName",
398
449
  # dimensions: [
399
450
  # {
400
451
  # name: "DimensionName", # required
401
452
  # value: "DimensionValue", # required
402
453
  # },
403
454
  # ],
404
- # stat: "AnomalyDetectorMetricStat", # required
455
+ # stat: "AnomalyDetectorMetricStat",
456
+ # single_metric_anomaly_detector: {
457
+ # namespace: "Namespace",
458
+ # metric_name: "MetricName",
459
+ # dimensions: [
460
+ # {
461
+ # name: "DimensionName", # required
462
+ # value: "DimensionValue", # required
463
+ # },
464
+ # ],
465
+ # stat: "AnomalyDetectorMetricStat",
466
+ # },
467
+ # metric_math_anomaly_detector: {
468
+ # metric_data_queries: [
469
+ # {
470
+ # id: "MetricId", # required
471
+ # metric_stat: {
472
+ # metric: { # required
473
+ # namespace: "Namespace",
474
+ # metric_name: "MetricName",
475
+ # dimensions: [
476
+ # {
477
+ # name: "DimensionName", # required
478
+ # value: "DimensionValue", # required
479
+ # },
480
+ # ],
481
+ # },
482
+ # period: 1, # required
483
+ # stat: "Stat", # required
484
+ # 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
485
+ # },
486
+ # expression: "MetricExpression",
487
+ # label: "MetricLabel",
488
+ # return_data: false,
489
+ # period: 1,
490
+ # account_id: "AccountId",
491
+ # },
492
+ # ],
493
+ # },
405
494
  # })
406
495
  #
407
496
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector AWS API Documentation
@@ -508,6 +597,12 @@ module Aws::CloudWatch
508
597
  # CloudWatch retains the history of an alarm even if you delete the
509
598
  # alarm.
510
599
  #
600
+ # To use this operation and return information about a composite alarm,
601
+ # you must be signed on with the `cloudwatch:DescribeAlarmHistory`
602
+ # permission that is scoped to `*`. You can't return information about
603
+ # composite alarms if your `cloudwatch:DescribeAlarmHistory` permission
604
+ # has a narrower scope.
605
+ #
511
606
  # @option params [String] :alarm_name
512
607
  # The name of the alarm.
513
608
  #
@@ -582,6 +677,12 @@ module Aws::CloudWatch
582
677
  # specifying a prefix for the alarm name, the alarm state, or a prefix
583
678
  # for any action.
584
679
  #
680
+ # To use this operation and return information about composite alarms,
681
+ # you must be signed on with the `cloudwatch:DescribeAlarms` permission
682
+ # that is scoped to `*`. You can't return information about composite
683
+ # alarms if your `cloudwatch:DescribeAlarms` permission has a narrower
684
+ # scope.
685
+ #
585
686
  # @option params [Array<String>] :alarm_names
586
687
  # The names of the alarms to retrieve information about.
587
688
  #
@@ -873,9 +974,12 @@ module Aws::CloudWatch
873
974
  end
874
975
 
875
976
  # Lists the anomaly detection models that you have created in your
876
- # account. You can list all models in your account or filter the results
877
- # to only the models that are related to a certain namespace, metric
878
- # name, or metric dimension.
977
+ # account. For single metric anomaly detectors, you can list all of the
978
+ # models in your account or filter the results to only the models that
979
+ # are related to a certain namespace, metric name, or metric dimension.
980
+ # For metric math anomaly detectors, you can list them by adding
981
+ # `METRIC_MATH` to the `AnomalyDetectorTypes` array. This will return
982
+ # all metric math anomaly detectors in your account.
879
983
  #
880
984
  # @option params [String] :next_token
881
985
  # Use the token returned by the previous operation to request the next
@@ -904,6 +1008,11 @@ module Aws::CloudWatch
904
1008
  # metrics that have these dimensions and have anomaly detection models
905
1009
  # associated, they're all returned.
906
1010
  #
1011
+ # @option params [Array<String>] :anomaly_detector_types
1012
+ # The anomaly detector types to request when using
1013
+ # `DescribeAnomalyDetectorsInput`. If empty, defaults to
1014
+ # `SINGLE_METRIC`.
1015
+ #
907
1016
  # @return [Types::DescribeAnomalyDetectorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
908
1017
  #
909
1018
  # * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array&lt;Types::AnomalyDetector&gt;
@@ -922,6 +1031,7 @@ module Aws::CloudWatch
922
1031
  # value: "DimensionValue", # required
923
1032
  # },
924
1033
  # ],
1034
+ # anomaly_detector_types: ["SINGLE_METRIC"], # accepts SINGLE_METRIC, METRIC_MATH
925
1035
  # })
926
1036
  #
927
1037
  # @example Response structure
@@ -938,6 +1048,27 @@ module Aws::CloudWatch
938
1048
  # resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
939
1049
  # resp.anomaly_detectors[0].configuration.metric_timezone #=> String
940
1050
  # resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
1051
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
1052
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
1053
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
1054
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].name #=> String
1055
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].value #=> String
1056
+ # resp.anomaly_detectors[0].single_metric_anomaly_detector.stat #=> String
1057
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries #=> Array
1058
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].id #=> String
1059
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.namespace #=> String
1060
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.metric_name #=> String
1061
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
1062
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
1063
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
1064
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.period #=> Integer
1065
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.stat #=> String
1066
+ # 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"
1067
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].expression #=> String
1068
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].label #=> String
1069
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].return_data #=> Boolean
1070
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].period #=> Integer
1071
+ # resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].account_id #=> String
941
1072
  # resp.next_token #=> String
942
1073
  #
943
1074
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors AWS API Documentation
@@ -2087,16 +2218,16 @@ module Aws::CloudWatch
2087
2218
  #
2088
2219
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html
2089
2220
  #
2090
- # @option params [required, String] :namespace
2221
+ # @option params [String] :namespace
2091
2222
  # The namespace of the metric to create the anomaly detection model for.
2092
2223
  #
2093
- # @option params [required, String] :metric_name
2224
+ # @option params [String] :metric_name
2094
2225
  # The name of the metric to create the anomaly detection model for.
2095
2226
  #
2096
2227
  # @option params [Array<Types::Dimension>] :dimensions
2097
2228
  # The metric dimensions to create the anomaly detection model for.
2098
2229
  #
2099
- # @option params [required, String] :stat
2230
+ # @option params [String] :stat
2100
2231
  # The statistic to use for the metric and the anomaly detection model.
2101
2232
  #
2102
2233
  # @option params [Types::AnomalyDetectorConfiguration] :configuration
@@ -2107,20 +2238,60 @@ module Aws::CloudWatch
2107
2238
  # The configuration can also include the time zone to use for the
2108
2239
  # metric.
2109
2240
  #
2241
+ # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
2242
+ # A single metric anomaly detector to be created.
2243
+ #
2244
+ # When using `SingleMetricAnomalyDetector`, you cannot include the
2245
+ # following parameters in the same operation:
2246
+ #
2247
+ # * `Dimensions`
2248
+ #
2249
+ # * `MetricName`
2250
+ #
2251
+ # * `Namespace`
2252
+ #
2253
+ # * `Stat`
2254
+ #
2255
+ # * the `MetricMatchAnomalyDetector` parameters of
2256
+ # `PutAnomalyDetectorInput`
2257
+ #
2258
+ # Instead, specify the single metric anomaly detector attributes as part
2259
+ # of the property `SingleMetricAnomalyDetector`.
2260
+ #
2261
+ # @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
2262
+ # The metric math anomaly detector to be created.
2263
+ #
2264
+ # When using `MetricMathAnomalyDetector`, you cannot include the
2265
+ # following parameters in the same operation:
2266
+ #
2267
+ # * `Dimensions`
2268
+ #
2269
+ # * `MetricName`
2270
+ #
2271
+ # * `Namespace`
2272
+ #
2273
+ # * `Stat`
2274
+ #
2275
+ # * the `SingleMetricAnomalyDetector` parameters of
2276
+ # `PutAnomalyDetectorInput`
2277
+ #
2278
+ # Instead, specify the metric math anomaly detector attributes as part
2279
+ # of the property `MetricMathAnomalyDetector`.
2280
+ #
2110
2281
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2111
2282
  #
2112
2283
  # @example Request syntax with placeholder values
2113
2284
  #
2114
2285
  # resp = client.put_anomaly_detector({
2115
- # namespace: "Namespace", # required
2116
- # metric_name: "MetricName", # required
2286
+ # namespace: "Namespace",
2287
+ # metric_name: "MetricName",
2117
2288
  # dimensions: [
2118
2289
  # {
2119
2290
  # name: "DimensionName", # required
2120
2291
  # value: "DimensionValue", # required
2121
2292
  # },
2122
2293
  # ],
2123
- # stat: "AnomalyDetectorMetricStat", # required
2294
+ # stat: "AnomalyDetectorMetricStat",
2124
2295
  # configuration: {
2125
2296
  # excluded_time_ranges: [
2126
2297
  # {
@@ -2130,6 +2301,44 @@ module Aws::CloudWatch
2130
2301
  # ],
2131
2302
  # metric_timezone: "AnomalyDetectorMetricTimezone",
2132
2303
  # },
2304
+ # single_metric_anomaly_detector: {
2305
+ # namespace: "Namespace",
2306
+ # metric_name: "MetricName",
2307
+ # dimensions: [
2308
+ # {
2309
+ # name: "DimensionName", # required
2310
+ # value: "DimensionValue", # required
2311
+ # },
2312
+ # ],
2313
+ # stat: "AnomalyDetectorMetricStat",
2314
+ # },
2315
+ # metric_math_anomaly_detector: {
2316
+ # metric_data_queries: [
2317
+ # {
2318
+ # id: "MetricId", # required
2319
+ # metric_stat: {
2320
+ # metric: { # required
2321
+ # namespace: "Namespace",
2322
+ # metric_name: "MetricName",
2323
+ # dimensions: [
2324
+ # {
2325
+ # name: "DimensionName", # required
2326
+ # value: "DimensionValue", # required
2327
+ # },
2328
+ # ],
2329
+ # },
2330
+ # period: 1, # required
2331
+ # stat: "Stat", # required
2332
+ # 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
2333
+ # },
2334
+ # expression: "MetricExpression",
2335
+ # label: "MetricLabel",
2336
+ # return_data: false,
2337
+ # period: 1,
2338
+ # account_id: "AccountId",
2339
+ # },
2340
+ # ],
2341
+ # },
2133
2342
  # })
2134
2343
  #
2135
2344
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector AWS API Documentation
@@ -2187,6 +2396,11 @@ module Aws::CloudWatch
2187
2396
  # the update completely overwrites the previous configuration of the
2188
2397
  # alarm.
2189
2398
  #
2399
+ # To use this operation, you must be signed on with the
2400
+ # `cloudwatch:PutCompositeAlarm` permission that is scoped to `*`. You
2401
+ # can't create a composite alarms if your
2402
+ # `cloudwatch:PutCompositeAlarm` permission has a narrower scope.
2403
+ #
2190
2404
  # If you are an IAM user, you must have `iam:CreateServiceLinkedRole` to
2191
2405
  # create a composite alarm that has Systems Manager OpsItem actions.
2192
2406
  #
@@ -2479,12 +2693,12 @@ module Aws::CloudWatch
2479
2693
  # * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
2480
2694
  # Manager OpsItem actions.
2481
2695
  #
2482
- # The first time you create an alarm in the Management Console, the CLI,
2483
- # or by using the PutMetricAlarm API, CloudWatch creates the necessary
2484
- # service-linked role for you. The service-linked roles are called
2485
- # `AWSServiceRoleForCloudWatchEvents` and
2486
- # `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more information,
2487
- # see [Amazon Web Services service-linked role][1].
2696
+ # The first time you create an alarm in the Amazon Web Services
2697
+ # Management Console, the CLI, or by using the PutMetricAlarm API,
2698
+ # CloudWatch creates the necessary service-linked role for you. The
2699
+ # service-linked roles are called `AWSServiceRoleForCloudWatchEvents`
2700
+ # and `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
2701
+ # information, see [Amazon Web Services service-linked role][1].
2488
2702
  #
2489
2703
  # **Cross-account alarms**
2490
2704
  #
@@ -2986,7 +3200,7 @@ module Aws::CloudWatch
2986
3200
  #
2987
3201
  #
2988
3202
  #
2989
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
3203
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html
2990
3204
  #
2991
3205
  # @option params [required, String] :name
2992
3206
  # If you are creating a new metric stream, this is the name for the new
@@ -3327,7 +3541,7 @@ module Aws::CloudWatch
3327
3541
  params: params,
3328
3542
  config: config)
3329
3543
  context[:gem_name] = 'aws-sdk-cloudwatch'
3330
- context[:gem_version] = '1.55.0'
3544
+ context[:gem_version] = '1.59.0'
3331
3545
  Seahorse::Client::Request.new(handlers, context)
3332
3546
  end
3333
3547
 
@@ -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.55.0'
55
+ GEM_VERSION = '1.59.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.55.0
4
+ version: 1.59.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-09-01 00:00:00.000000000 Z
11
+ date: 2021-11-30 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.120.0
22
+ version: 3.122.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.120.0
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement