aws-sdk-cloudwatch 1.56.0 → 1.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +248 -25
- data/lib/aws-sdk-cloudwatch/client_api.rb +37 -12
- data/lib/aws-sdk-cloudwatch/types.rb +303 -14
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8c9fce0d442b510c219046fafb4cbf27ad89d7f241534a9465a8c9fcecfbe5e
|
4
|
+
data.tar.gz: a16114cfc5990edf866cc7f93b13872fb2367dbd94f14e69e072ea04e8376b52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b6a2fa6f05ceb783a5c6c7cb9e9f06c9589a3e994f66ddef75910780f70d37baa93b7b1eccc9ec7dd4b69a7ad0ad55d3e7286fdc12f9d152eda29ad57c0c610
|
7
|
+
data.tar.gz: 139736a09826dc2b44e0c3ed1427bca6f2ac863a7ea67f1168930b98209e09144744f50440434d6860413b928b9ba331d3f39360d4bdfef147b0ff3c7779b49b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.60.0 (2021-12-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.59.0 (2021-11-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.58.0 (2021-11-18)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - CloudWatch Anomaly Detection now supports anomaly detectors that use metric math as input.
|
18
|
+
|
19
|
+
1.57.0 (2021-11-04)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.56.0 (2021-10-18)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
@@ -27,6 +27,7 @@ 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'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::CloudWatch
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::Query)
|
78
80
|
|
@@ -119,7 +121,9 @@ module Aws::CloudWatch
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::CloudWatch
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -275,6 +283,15 @@ module Aws::CloudWatch
|
|
275
283
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
284
|
# requests are made, and retries are disabled.
|
277
285
|
#
|
286
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
287
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
288
|
+
# will be used if available.
|
289
|
+
#
|
290
|
+
# @option options [Boolean] :use_fips_endpoint
|
291
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
292
|
+
# When a `fips` region is used, the region is normalized and this config
|
293
|
+
# is set to `true`.
|
294
|
+
#
|
278
295
|
# @option options [Boolean] :validate_params (true)
|
279
296
|
# When `true`, request parameters are validated before
|
280
297
|
# sending the request.
|
@@ -286,7 +303,7 @@ module Aws::CloudWatch
|
|
286
303
|
# seconds to wait when opening a HTTP session before raising a
|
287
304
|
# `Timeout::Error`.
|
288
305
|
#
|
289
|
-
# @option options [
|
306
|
+
# @option options [Float] :http_read_timeout (60) The default
|
290
307
|
# number of seconds to wait for response data. This value can
|
291
308
|
# safely be set per-request on the session.
|
292
309
|
#
|
@@ -302,6 +319,9 @@ module Aws::CloudWatch
|
|
302
319
|
# disables this behaviour. This value can safely be set per
|
303
320
|
# request on the session.
|
304
321
|
#
|
322
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
323
|
+
# in seconds.
|
324
|
+
#
|
305
325
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
306
326
|
# HTTP debug output will be sent to the `:logger`.
|
307
327
|
#
|
@@ -375,33 +395,111 @@ module Aws::CloudWatch
|
|
375
395
|
|
376
396
|
# Deletes the specified anomaly detection model from your account.
|
377
397
|
#
|
378
|
-
# @option params [
|
398
|
+
# @option params [String] :namespace
|
379
399
|
# The namespace associated with the anomaly detection model to delete.
|
380
400
|
#
|
381
|
-
# @option params [
|
401
|
+
# @option params [String] :metric_name
|
382
402
|
# The metric name associated with the anomaly detection model to delete.
|
383
403
|
#
|
384
404
|
# @option params [Array<Types::Dimension>] :dimensions
|
385
405
|
# The metric dimensions associated with the anomaly detection model to
|
386
406
|
# delete.
|
387
407
|
#
|
388
|
-
# @option params [
|
408
|
+
# @option params [String] :stat
|
389
409
|
# The statistic associated with the anomaly detection model to delete.
|
390
410
|
#
|
411
|
+
# @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
|
412
|
+
# A single metric anomaly detector to be deleted.
|
413
|
+
#
|
414
|
+
# When using `SingleMetricAnomalyDetector`, you cannot include the
|
415
|
+
# following parameters in the same operation:
|
416
|
+
#
|
417
|
+
# * `Dimensions`,
|
418
|
+
#
|
419
|
+
# * `MetricName`
|
420
|
+
#
|
421
|
+
# * `Namespace`
|
422
|
+
#
|
423
|
+
# * `Stat`
|
424
|
+
#
|
425
|
+
# * the `MetricMathAnomalyDetector` parameters of
|
426
|
+
# `DeleteAnomalyDetectorInput`
|
427
|
+
#
|
428
|
+
# Instead, specify the single metric anomaly detector attributes as part
|
429
|
+
# of the `SingleMetricAnomalyDetector` property.
|
430
|
+
#
|
431
|
+
# @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
|
432
|
+
# The metric math anomaly detector to be deleted.
|
433
|
+
#
|
434
|
+
# When using `MetricMathAnomalyDetector`, you cannot include following
|
435
|
+
# parameters in the same operation:
|
436
|
+
#
|
437
|
+
# * `Dimensions`,
|
438
|
+
#
|
439
|
+
# * `MetricName`
|
440
|
+
#
|
441
|
+
# * `Namespace`
|
442
|
+
#
|
443
|
+
# * `Stat`
|
444
|
+
#
|
445
|
+
# * the `SingleMetricAnomalyDetector` parameters of
|
446
|
+
# `DeleteAnomalyDetectorInput`
|
447
|
+
#
|
448
|
+
# Instead, specify the metric math anomaly detector attributes as part
|
449
|
+
# of the `MetricMathAnomalyDetector` property.
|
450
|
+
#
|
391
451
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
392
452
|
#
|
393
453
|
# @example Request syntax with placeholder values
|
394
454
|
#
|
395
455
|
# resp = client.delete_anomaly_detector({
|
396
|
-
# namespace: "Namespace",
|
397
|
-
# metric_name: "MetricName",
|
456
|
+
# namespace: "Namespace",
|
457
|
+
# metric_name: "MetricName",
|
398
458
|
# dimensions: [
|
399
459
|
# {
|
400
460
|
# name: "DimensionName", # required
|
401
461
|
# value: "DimensionValue", # required
|
402
462
|
# },
|
403
463
|
# ],
|
404
|
-
# stat: "AnomalyDetectorMetricStat",
|
464
|
+
# stat: "AnomalyDetectorMetricStat",
|
465
|
+
# single_metric_anomaly_detector: {
|
466
|
+
# namespace: "Namespace",
|
467
|
+
# metric_name: "MetricName",
|
468
|
+
# dimensions: [
|
469
|
+
# {
|
470
|
+
# name: "DimensionName", # required
|
471
|
+
# value: "DimensionValue", # required
|
472
|
+
# },
|
473
|
+
# ],
|
474
|
+
# stat: "AnomalyDetectorMetricStat",
|
475
|
+
# },
|
476
|
+
# metric_math_anomaly_detector: {
|
477
|
+
# metric_data_queries: [
|
478
|
+
# {
|
479
|
+
# id: "MetricId", # required
|
480
|
+
# metric_stat: {
|
481
|
+
# metric: { # required
|
482
|
+
# namespace: "Namespace",
|
483
|
+
# metric_name: "MetricName",
|
484
|
+
# dimensions: [
|
485
|
+
# {
|
486
|
+
# name: "DimensionName", # required
|
487
|
+
# value: "DimensionValue", # required
|
488
|
+
# },
|
489
|
+
# ],
|
490
|
+
# },
|
491
|
+
# period: 1, # required
|
492
|
+
# stat: "Stat", # required
|
493
|
+
# 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
|
494
|
+
# },
|
495
|
+
# expression: "MetricExpression",
|
496
|
+
# label: "MetricLabel",
|
497
|
+
# return_data: false,
|
498
|
+
# period: 1,
|
499
|
+
# account_id: "AccountId",
|
500
|
+
# },
|
501
|
+
# ],
|
502
|
+
# },
|
405
503
|
# })
|
406
504
|
#
|
407
505
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector AWS API Documentation
|
@@ -508,6 +606,12 @@ module Aws::CloudWatch
|
|
508
606
|
# CloudWatch retains the history of an alarm even if you delete the
|
509
607
|
# alarm.
|
510
608
|
#
|
609
|
+
# To use this operation and return information about a composite alarm,
|
610
|
+
# you must be signed on with the `cloudwatch:DescribeAlarmHistory`
|
611
|
+
# permission that is scoped to `*`. You can't return information about
|
612
|
+
# composite alarms if your `cloudwatch:DescribeAlarmHistory` permission
|
613
|
+
# has a narrower scope.
|
614
|
+
#
|
511
615
|
# @option params [String] :alarm_name
|
512
616
|
# The name of the alarm.
|
513
617
|
#
|
@@ -582,6 +686,12 @@ module Aws::CloudWatch
|
|
582
686
|
# specifying a prefix for the alarm name, the alarm state, or a prefix
|
583
687
|
# for any action.
|
584
688
|
#
|
689
|
+
# To use this operation and return information about composite alarms,
|
690
|
+
# you must be signed on with the `cloudwatch:DescribeAlarms` permission
|
691
|
+
# that is scoped to `*`. You can't return information about composite
|
692
|
+
# alarms if your `cloudwatch:DescribeAlarms` permission has a narrower
|
693
|
+
# scope.
|
694
|
+
#
|
585
695
|
# @option params [Array<String>] :alarm_names
|
586
696
|
# The names of the alarms to retrieve information about.
|
587
697
|
#
|
@@ -873,9 +983,12 @@ module Aws::CloudWatch
|
|
873
983
|
end
|
874
984
|
|
875
985
|
# Lists the anomaly detection models that you have created in your
|
876
|
-
# account.
|
877
|
-
#
|
878
|
-
# name, or metric dimension.
|
986
|
+
# account. For single metric anomaly detectors, you can list all of the
|
987
|
+
# models in your account or filter the results to only the models that
|
988
|
+
# are related to a certain namespace, metric name, or metric dimension.
|
989
|
+
# For metric math anomaly detectors, you can list them by adding
|
990
|
+
# `METRIC_MATH` to the `AnomalyDetectorTypes` array. This will return
|
991
|
+
# all metric math anomaly detectors in your account.
|
879
992
|
#
|
880
993
|
# @option params [String] :next_token
|
881
994
|
# Use the token returned by the previous operation to request the next
|
@@ -904,6 +1017,11 @@ module Aws::CloudWatch
|
|
904
1017
|
# metrics that have these dimensions and have anomaly detection models
|
905
1018
|
# associated, they're all returned.
|
906
1019
|
#
|
1020
|
+
# @option params [Array<String>] :anomaly_detector_types
|
1021
|
+
# The anomaly detector types to request when using
|
1022
|
+
# `DescribeAnomalyDetectorsInput`. If empty, defaults to
|
1023
|
+
# `SINGLE_METRIC`.
|
1024
|
+
#
|
907
1025
|
# @return [Types::DescribeAnomalyDetectorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
908
1026
|
#
|
909
1027
|
# * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array<Types::AnomalyDetector>
|
@@ -922,6 +1040,7 @@ module Aws::CloudWatch
|
|
922
1040
|
# value: "DimensionValue", # required
|
923
1041
|
# },
|
924
1042
|
# ],
|
1043
|
+
# anomaly_detector_types: ["SINGLE_METRIC"], # accepts SINGLE_METRIC, METRIC_MATH
|
925
1044
|
# })
|
926
1045
|
#
|
927
1046
|
# @example Response structure
|
@@ -938,6 +1057,27 @@ module Aws::CloudWatch
|
|
938
1057
|
# resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
|
939
1058
|
# resp.anomaly_detectors[0].configuration.metric_timezone #=> String
|
940
1059
|
# resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
|
1060
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
|
1061
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
|
1062
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
|
1063
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].name #=> String
|
1064
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].value #=> String
|
1065
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.stat #=> String
|
1066
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries #=> Array
|
1067
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].id #=> String
|
1068
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.namespace #=> String
|
1069
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.metric_name #=> String
|
1070
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
|
1071
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
|
1072
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
|
1073
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.period #=> Integer
|
1074
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.stat #=> String
|
1075
|
+
# 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"
|
1076
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].expression #=> String
|
1077
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].label #=> String
|
1078
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].return_data #=> Boolean
|
1079
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].period #=> Integer
|
1080
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].account_id #=> String
|
941
1081
|
# resp.next_token #=> String
|
942
1082
|
#
|
943
1083
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors AWS API Documentation
|
@@ -2087,16 +2227,16 @@ module Aws::CloudWatch
|
|
2087
2227
|
#
|
2088
2228
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html
|
2089
2229
|
#
|
2090
|
-
# @option params [
|
2230
|
+
# @option params [String] :namespace
|
2091
2231
|
# The namespace of the metric to create the anomaly detection model for.
|
2092
2232
|
#
|
2093
|
-
# @option params [
|
2233
|
+
# @option params [String] :metric_name
|
2094
2234
|
# The name of the metric to create the anomaly detection model for.
|
2095
2235
|
#
|
2096
2236
|
# @option params [Array<Types::Dimension>] :dimensions
|
2097
2237
|
# The metric dimensions to create the anomaly detection model for.
|
2098
2238
|
#
|
2099
|
-
# @option params [
|
2239
|
+
# @option params [String] :stat
|
2100
2240
|
# The statistic to use for the metric and the anomaly detection model.
|
2101
2241
|
#
|
2102
2242
|
# @option params [Types::AnomalyDetectorConfiguration] :configuration
|
@@ -2107,20 +2247,60 @@ module Aws::CloudWatch
|
|
2107
2247
|
# The configuration can also include the time zone to use for the
|
2108
2248
|
# metric.
|
2109
2249
|
#
|
2250
|
+
# @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
|
2251
|
+
# A single metric anomaly detector to be created.
|
2252
|
+
#
|
2253
|
+
# When using `SingleMetricAnomalyDetector`, you cannot include the
|
2254
|
+
# following parameters in the same operation:
|
2255
|
+
#
|
2256
|
+
# * `Dimensions`
|
2257
|
+
#
|
2258
|
+
# * `MetricName`
|
2259
|
+
#
|
2260
|
+
# * `Namespace`
|
2261
|
+
#
|
2262
|
+
# * `Stat`
|
2263
|
+
#
|
2264
|
+
# * the `MetricMatchAnomalyDetector` parameters of
|
2265
|
+
# `PutAnomalyDetectorInput`
|
2266
|
+
#
|
2267
|
+
# Instead, specify the single metric anomaly detector attributes as part
|
2268
|
+
# of the property `SingleMetricAnomalyDetector`.
|
2269
|
+
#
|
2270
|
+
# @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
|
2271
|
+
# The metric math anomaly detector to be created.
|
2272
|
+
#
|
2273
|
+
# When using `MetricMathAnomalyDetector`, you cannot include the
|
2274
|
+
# following parameters in the same operation:
|
2275
|
+
#
|
2276
|
+
# * `Dimensions`
|
2277
|
+
#
|
2278
|
+
# * `MetricName`
|
2279
|
+
#
|
2280
|
+
# * `Namespace`
|
2281
|
+
#
|
2282
|
+
# * `Stat`
|
2283
|
+
#
|
2284
|
+
# * the `SingleMetricAnomalyDetector` parameters of
|
2285
|
+
# `PutAnomalyDetectorInput`
|
2286
|
+
#
|
2287
|
+
# Instead, specify the metric math anomaly detector attributes as part
|
2288
|
+
# of the property `MetricMathAnomalyDetector`.
|
2289
|
+
#
|
2110
2290
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2111
2291
|
#
|
2112
2292
|
# @example Request syntax with placeholder values
|
2113
2293
|
#
|
2114
2294
|
# resp = client.put_anomaly_detector({
|
2115
|
-
# namespace: "Namespace",
|
2116
|
-
# metric_name: "MetricName",
|
2295
|
+
# namespace: "Namespace",
|
2296
|
+
# metric_name: "MetricName",
|
2117
2297
|
# dimensions: [
|
2118
2298
|
# {
|
2119
2299
|
# name: "DimensionName", # required
|
2120
2300
|
# value: "DimensionValue", # required
|
2121
2301
|
# },
|
2122
2302
|
# ],
|
2123
|
-
# stat: "AnomalyDetectorMetricStat",
|
2303
|
+
# stat: "AnomalyDetectorMetricStat",
|
2124
2304
|
# configuration: {
|
2125
2305
|
# excluded_time_ranges: [
|
2126
2306
|
# {
|
@@ -2130,6 +2310,44 @@ module Aws::CloudWatch
|
|
2130
2310
|
# ],
|
2131
2311
|
# metric_timezone: "AnomalyDetectorMetricTimezone",
|
2132
2312
|
# },
|
2313
|
+
# single_metric_anomaly_detector: {
|
2314
|
+
# namespace: "Namespace",
|
2315
|
+
# metric_name: "MetricName",
|
2316
|
+
# dimensions: [
|
2317
|
+
# {
|
2318
|
+
# name: "DimensionName", # required
|
2319
|
+
# value: "DimensionValue", # required
|
2320
|
+
# },
|
2321
|
+
# ],
|
2322
|
+
# stat: "AnomalyDetectorMetricStat",
|
2323
|
+
# },
|
2324
|
+
# metric_math_anomaly_detector: {
|
2325
|
+
# metric_data_queries: [
|
2326
|
+
# {
|
2327
|
+
# id: "MetricId", # required
|
2328
|
+
# metric_stat: {
|
2329
|
+
# metric: { # required
|
2330
|
+
# namespace: "Namespace",
|
2331
|
+
# metric_name: "MetricName",
|
2332
|
+
# dimensions: [
|
2333
|
+
# {
|
2334
|
+
# name: "DimensionName", # required
|
2335
|
+
# value: "DimensionValue", # required
|
2336
|
+
# },
|
2337
|
+
# ],
|
2338
|
+
# },
|
2339
|
+
# period: 1, # required
|
2340
|
+
# stat: "Stat", # required
|
2341
|
+
# 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
|
2342
|
+
# },
|
2343
|
+
# expression: "MetricExpression",
|
2344
|
+
# label: "MetricLabel",
|
2345
|
+
# return_data: false,
|
2346
|
+
# period: 1,
|
2347
|
+
# account_id: "AccountId",
|
2348
|
+
# },
|
2349
|
+
# ],
|
2350
|
+
# },
|
2133
2351
|
# })
|
2134
2352
|
#
|
2135
2353
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector AWS API Documentation
|
@@ -2187,6 +2405,11 @@ module Aws::CloudWatch
|
|
2187
2405
|
# the update completely overwrites the previous configuration of the
|
2188
2406
|
# alarm.
|
2189
2407
|
#
|
2408
|
+
# To use this operation, you must be signed on with the
|
2409
|
+
# `cloudwatch:PutCompositeAlarm` permission that is scoped to `*`. You
|
2410
|
+
# can't create a composite alarms if your
|
2411
|
+
# `cloudwatch:PutCompositeAlarm` permission has a narrower scope.
|
2412
|
+
#
|
2190
2413
|
# If you are an IAM user, you must have `iam:CreateServiceLinkedRole` to
|
2191
2414
|
# create a composite alarm that has Systems Manager OpsItem actions.
|
2192
2415
|
#
|
@@ -2479,12 +2702,12 @@ module Aws::CloudWatch
|
|
2479
2702
|
# * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
|
2480
2703
|
# Manager OpsItem actions.
|
2481
2704
|
#
|
2482
|
-
# The first time you create an alarm in the
|
2483
|
-
# or by using the PutMetricAlarm API,
|
2484
|
-
# service-linked role for you. The
|
2485
|
-
# `AWSServiceRoleForCloudWatchEvents`
|
2486
|
-
# `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
|
2487
|
-
# see [Amazon Web Services service-linked role][1].
|
2705
|
+
# The first time you create an alarm in the Amazon Web Services
|
2706
|
+
# Management Console, the CLI, or by using the PutMetricAlarm API,
|
2707
|
+
# CloudWatch creates the necessary service-linked role for you. The
|
2708
|
+
# service-linked roles are called `AWSServiceRoleForCloudWatchEvents`
|
2709
|
+
# and `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
|
2710
|
+
# information, see [Amazon Web Services service-linked role][1].
|
2488
2711
|
#
|
2489
2712
|
# **Cross-account alarms**
|
2490
2713
|
#
|
@@ -2986,7 +3209,7 @@ module Aws::CloudWatch
|
|
2986
3209
|
#
|
2987
3210
|
#
|
2988
3211
|
#
|
2989
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
|
3212
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html
|
2990
3213
|
#
|
2991
3214
|
# @option params [required, String] :name
|
2992
3215
|
# If you are creating a new metric stream, this is the name for the new
|
@@ -3327,7 +3550,7 @@ module Aws::CloudWatch
|
|
3327
3550
|
params: params,
|
3328
3551
|
config: config)
|
3329
3552
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
3330
|
-
context[:gem_version] = '1.
|
3553
|
+
context[:gem_version] = '1.60.0'
|
3331
3554
|
Seahorse::Client::Request.new(handlers, context)
|
3332
3555
|
end
|
3333
3556
|
|
@@ -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,
|
351
|
-
DeleteAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName,
|
352
|
-
DeleteAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
353
|
-
DeleteAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat,
|
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,
|
752
|
-
PutAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName,
|
753
|
-
PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
754
|
-
PutAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat,
|
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
|
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",
|
386
|
-
# metric_name: "MetricName",
|
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",
|
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
|
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",
|
3079
|
-
# metric_name: "MetricName",
|
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",
|
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
|
#
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.60.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
|
+
date: 2021-12-21 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.
|
22
|
+
version: 3.125.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.
|
32
|
+
version: 3.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|