aws-sdk-cloudwatch 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +226 -23
- 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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4da873f3e2e099d8475fc98590e9721ace10e812af830b5f094f9587edb3295e
|
|
4
|
+
data.tar.gz: eab1c5aac0de743539d71ebcf7f6acbdcf5c52aa657b2d48b741cf6c6d105daa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fed5e741c1da10cdacf60abb5bb5c5d89a5ac75ef868ab74ee4f14a10b40ca4e9831f44139f44bef52fd30226306b7577a0c825c34352e687c315e8f2ab660a
|
|
7
|
+
data.tar.gz: c215e1814ffae5e21daa38bdf24446ca5a16a39f2a478cbc8e104a51c0c6fd729f241f4116d3497d926851e004abffedfbe079b90ad65bbedffe8de597e272e9
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.58.0
|
|
@@ -384,33 +384,111 @@ module Aws::CloudWatch
|
|
|
384
384
|
|
|
385
385
|
# Deletes the specified anomaly detection model from your account.
|
|
386
386
|
#
|
|
387
|
-
# @option params [
|
|
387
|
+
# @option params [String] :namespace
|
|
388
388
|
# The namespace associated with the anomaly detection model to delete.
|
|
389
389
|
#
|
|
390
|
-
# @option params [
|
|
390
|
+
# @option params [String] :metric_name
|
|
391
391
|
# The metric name associated with the anomaly detection model to delete.
|
|
392
392
|
#
|
|
393
393
|
# @option params [Array<Types::Dimension>] :dimensions
|
|
394
394
|
# The metric dimensions associated with the anomaly detection model to
|
|
395
395
|
# delete.
|
|
396
396
|
#
|
|
397
|
-
# @option params [
|
|
397
|
+
# @option params [String] :stat
|
|
398
398
|
# The statistic associated with the anomaly detection model to delete.
|
|
399
399
|
#
|
|
400
|
+
# @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
|
|
401
|
+
# A single metric anomaly detector to be deleted.
|
|
402
|
+
#
|
|
403
|
+
# When using `SingleMetricAnomalyDetector`, you cannot include the
|
|
404
|
+
# following parameters in the same operation:
|
|
405
|
+
#
|
|
406
|
+
# * `Dimensions`,
|
|
407
|
+
#
|
|
408
|
+
# * `MetricName`
|
|
409
|
+
#
|
|
410
|
+
# * `Namespace`
|
|
411
|
+
#
|
|
412
|
+
# * `Stat`
|
|
413
|
+
#
|
|
414
|
+
# * the `MetricMathAnomalyDetector` parameters of
|
|
415
|
+
# `DeleteAnomalyDetectorInput`
|
|
416
|
+
#
|
|
417
|
+
# Instead, specify the single metric anomaly detector attributes as part
|
|
418
|
+
# of the `SingleMetricAnomalyDetector` property.
|
|
419
|
+
#
|
|
420
|
+
# @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
|
|
421
|
+
# The metric math anomaly detector to be deleted.
|
|
422
|
+
#
|
|
423
|
+
# When using `MetricMathAnomalyDetector`, you cannot include following
|
|
424
|
+
# parameters in the same operation:
|
|
425
|
+
#
|
|
426
|
+
# * `Dimensions`,
|
|
427
|
+
#
|
|
428
|
+
# * `MetricName`
|
|
429
|
+
#
|
|
430
|
+
# * `Namespace`
|
|
431
|
+
#
|
|
432
|
+
# * `Stat`
|
|
433
|
+
#
|
|
434
|
+
# * the `SingleMetricAnomalyDetector` parameters of
|
|
435
|
+
# `DeleteAnomalyDetectorInput`
|
|
436
|
+
#
|
|
437
|
+
# Instead, specify the metric math anomaly detector attributes as part
|
|
438
|
+
# of the `MetricMathAnomalyDetector` property.
|
|
439
|
+
#
|
|
400
440
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
401
441
|
#
|
|
402
442
|
# @example Request syntax with placeholder values
|
|
403
443
|
#
|
|
404
444
|
# resp = client.delete_anomaly_detector({
|
|
405
|
-
# namespace: "Namespace",
|
|
406
|
-
# metric_name: "MetricName",
|
|
445
|
+
# namespace: "Namespace",
|
|
446
|
+
# metric_name: "MetricName",
|
|
407
447
|
# dimensions: [
|
|
408
448
|
# {
|
|
409
449
|
# name: "DimensionName", # required
|
|
410
450
|
# value: "DimensionValue", # required
|
|
411
451
|
# },
|
|
412
452
|
# ],
|
|
413
|
-
# stat: "AnomalyDetectorMetricStat",
|
|
453
|
+
# stat: "AnomalyDetectorMetricStat",
|
|
454
|
+
# single_metric_anomaly_detector: {
|
|
455
|
+
# namespace: "Namespace",
|
|
456
|
+
# metric_name: "MetricName",
|
|
457
|
+
# dimensions: [
|
|
458
|
+
# {
|
|
459
|
+
# name: "DimensionName", # required
|
|
460
|
+
# value: "DimensionValue", # required
|
|
461
|
+
# },
|
|
462
|
+
# ],
|
|
463
|
+
# stat: "AnomalyDetectorMetricStat",
|
|
464
|
+
# },
|
|
465
|
+
# metric_math_anomaly_detector: {
|
|
466
|
+
# metric_data_queries: [
|
|
467
|
+
# {
|
|
468
|
+
# id: "MetricId", # required
|
|
469
|
+
# metric_stat: {
|
|
470
|
+
# metric: { # required
|
|
471
|
+
# namespace: "Namespace",
|
|
472
|
+
# metric_name: "MetricName",
|
|
473
|
+
# dimensions: [
|
|
474
|
+
# {
|
|
475
|
+
# name: "DimensionName", # required
|
|
476
|
+
# value: "DimensionValue", # required
|
|
477
|
+
# },
|
|
478
|
+
# ],
|
|
479
|
+
# },
|
|
480
|
+
# period: 1, # required
|
|
481
|
+
# stat: "Stat", # required
|
|
482
|
+
# 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
|
|
483
|
+
# },
|
|
484
|
+
# expression: "MetricExpression",
|
|
485
|
+
# label: "MetricLabel",
|
|
486
|
+
# return_data: false,
|
|
487
|
+
# period: 1,
|
|
488
|
+
# account_id: "AccountId",
|
|
489
|
+
# },
|
|
490
|
+
# ],
|
|
491
|
+
# },
|
|
414
492
|
# })
|
|
415
493
|
#
|
|
416
494
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector AWS API Documentation
|
|
@@ -517,6 +595,12 @@ module Aws::CloudWatch
|
|
|
517
595
|
# CloudWatch retains the history of an alarm even if you delete the
|
|
518
596
|
# alarm.
|
|
519
597
|
#
|
|
598
|
+
# To use this operation and return information about a composite alarm,
|
|
599
|
+
# you must be signed on with the `cloudwatch:DescribeAlarmHistory`
|
|
600
|
+
# permission that is scoped to `*`. You can't return information about
|
|
601
|
+
# composite alarms if your `cloudwatch:DescribeAlarmHistory` permission
|
|
602
|
+
# has a narrower scope.
|
|
603
|
+
#
|
|
520
604
|
# @option params [String] :alarm_name
|
|
521
605
|
# The name of the alarm.
|
|
522
606
|
#
|
|
@@ -591,6 +675,12 @@ module Aws::CloudWatch
|
|
|
591
675
|
# specifying a prefix for the alarm name, the alarm state, or a prefix
|
|
592
676
|
# for any action.
|
|
593
677
|
#
|
|
678
|
+
# To use this operation and return information about composite alarms,
|
|
679
|
+
# you must be signed on with the `cloudwatch:DescribeAlarms` permission
|
|
680
|
+
# that is scoped to `*`. You can't return information about composite
|
|
681
|
+
# alarms if your `cloudwatch:DescribeAlarms` permission has a narrower
|
|
682
|
+
# scope.
|
|
683
|
+
#
|
|
594
684
|
# @option params [Array<String>] :alarm_names
|
|
595
685
|
# The names of the alarms to retrieve information about.
|
|
596
686
|
#
|
|
@@ -882,9 +972,12 @@ module Aws::CloudWatch
|
|
|
882
972
|
end
|
|
883
973
|
|
|
884
974
|
# Lists the anomaly detection models that you have created in your
|
|
885
|
-
# account.
|
|
886
|
-
#
|
|
887
|
-
# name, or metric dimension.
|
|
975
|
+
# account. For single metric anomaly detectors, you can list all of the
|
|
976
|
+
# models in your account or filter the results to only the models that
|
|
977
|
+
# are related to a certain namespace, metric name, or metric dimension.
|
|
978
|
+
# For metric math anomaly detectors, you can list them by adding
|
|
979
|
+
# `METRIC_MATH` to the `AnomalyDetectorTypes` array. This will return
|
|
980
|
+
# all metric math anomaly detectors in your account.
|
|
888
981
|
#
|
|
889
982
|
# @option params [String] :next_token
|
|
890
983
|
# Use the token returned by the previous operation to request the next
|
|
@@ -913,6 +1006,11 @@ module Aws::CloudWatch
|
|
|
913
1006
|
# metrics that have these dimensions and have anomaly detection models
|
|
914
1007
|
# associated, they're all returned.
|
|
915
1008
|
#
|
|
1009
|
+
# @option params [Array<String>] :anomaly_detector_types
|
|
1010
|
+
# The anomaly detector types to request when using
|
|
1011
|
+
# `DescribeAnomalyDetectorsInput`. If empty, defaults to
|
|
1012
|
+
# `SINGLE_METRIC`.
|
|
1013
|
+
#
|
|
916
1014
|
# @return [Types::DescribeAnomalyDetectorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
917
1015
|
#
|
|
918
1016
|
# * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array<Types::AnomalyDetector>
|
|
@@ -931,6 +1029,7 @@ module Aws::CloudWatch
|
|
|
931
1029
|
# value: "DimensionValue", # required
|
|
932
1030
|
# },
|
|
933
1031
|
# ],
|
|
1032
|
+
# anomaly_detector_types: ["SINGLE_METRIC"], # accepts SINGLE_METRIC, METRIC_MATH
|
|
934
1033
|
# })
|
|
935
1034
|
#
|
|
936
1035
|
# @example Response structure
|
|
@@ -947,6 +1046,27 @@ module Aws::CloudWatch
|
|
|
947
1046
|
# resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
|
|
948
1047
|
# resp.anomaly_detectors[0].configuration.metric_timezone #=> String
|
|
949
1048
|
# resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
|
|
1049
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
|
|
1050
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
|
|
1051
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
|
|
1052
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].name #=> String
|
|
1053
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions[0].value #=> String
|
|
1054
|
+
# resp.anomaly_detectors[0].single_metric_anomaly_detector.stat #=> String
|
|
1055
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries #=> Array
|
|
1056
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].id #=> String
|
|
1057
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.namespace #=> String
|
|
1058
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.metric_name #=> String
|
|
1059
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
|
|
1060
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
|
|
1061
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
|
|
1062
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.period #=> Integer
|
|
1063
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].metric_stat.stat #=> String
|
|
1064
|
+
# 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"
|
|
1065
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].expression #=> String
|
|
1066
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].label #=> String
|
|
1067
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].return_data #=> Boolean
|
|
1068
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].period #=> Integer
|
|
1069
|
+
# resp.anomaly_detectors[0].metric_math_anomaly_detector.metric_data_queries[0].account_id #=> String
|
|
950
1070
|
# resp.next_token #=> String
|
|
951
1071
|
#
|
|
952
1072
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors AWS API Documentation
|
|
@@ -2096,16 +2216,16 @@ module Aws::CloudWatch
|
|
|
2096
2216
|
#
|
|
2097
2217
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html
|
|
2098
2218
|
#
|
|
2099
|
-
# @option params [
|
|
2219
|
+
# @option params [String] :namespace
|
|
2100
2220
|
# The namespace of the metric to create the anomaly detection model for.
|
|
2101
2221
|
#
|
|
2102
|
-
# @option params [
|
|
2222
|
+
# @option params [String] :metric_name
|
|
2103
2223
|
# The name of the metric to create the anomaly detection model for.
|
|
2104
2224
|
#
|
|
2105
2225
|
# @option params [Array<Types::Dimension>] :dimensions
|
|
2106
2226
|
# The metric dimensions to create the anomaly detection model for.
|
|
2107
2227
|
#
|
|
2108
|
-
# @option params [
|
|
2228
|
+
# @option params [String] :stat
|
|
2109
2229
|
# The statistic to use for the metric and the anomaly detection model.
|
|
2110
2230
|
#
|
|
2111
2231
|
# @option params [Types::AnomalyDetectorConfiguration] :configuration
|
|
@@ -2116,20 +2236,60 @@ module Aws::CloudWatch
|
|
|
2116
2236
|
# The configuration can also include the time zone to use for the
|
|
2117
2237
|
# metric.
|
|
2118
2238
|
#
|
|
2239
|
+
# @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
|
|
2240
|
+
# A single metric anomaly detector to be created.
|
|
2241
|
+
#
|
|
2242
|
+
# When using `SingleMetricAnomalyDetector`, you cannot include the
|
|
2243
|
+
# following parameters in the same operation:
|
|
2244
|
+
#
|
|
2245
|
+
# * `Dimensions`
|
|
2246
|
+
#
|
|
2247
|
+
# * `MetricName`
|
|
2248
|
+
#
|
|
2249
|
+
# * `Namespace`
|
|
2250
|
+
#
|
|
2251
|
+
# * `Stat`
|
|
2252
|
+
#
|
|
2253
|
+
# * the `MetricMatchAnomalyDetector` parameters of
|
|
2254
|
+
# `PutAnomalyDetectorInput`
|
|
2255
|
+
#
|
|
2256
|
+
# Instead, specify the single metric anomaly detector attributes as part
|
|
2257
|
+
# of the property `SingleMetricAnomalyDetector`.
|
|
2258
|
+
#
|
|
2259
|
+
# @option params [Types::MetricMathAnomalyDetector] :metric_math_anomaly_detector
|
|
2260
|
+
# The metric math anomaly detector to be created.
|
|
2261
|
+
#
|
|
2262
|
+
# When using `MetricMathAnomalyDetector`, you cannot include the
|
|
2263
|
+
# following parameters in the same operation:
|
|
2264
|
+
#
|
|
2265
|
+
# * `Dimensions`
|
|
2266
|
+
#
|
|
2267
|
+
# * `MetricName`
|
|
2268
|
+
#
|
|
2269
|
+
# * `Namespace`
|
|
2270
|
+
#
|
|
2271
|
+
# * `Stat`
|
|
2272
|
+
#
|
|
2273
|
+
# * the `SingleMetricAnomalyDetector` parameters of
|
|
2274
|
+
# `PutAnomalyDetectorInput`
|
|
2275
|
+
#
|
|
2276
|
+
# Instead, specify the metric math anomaly detector attributes as part
|
|
2277
|
+
# of the property `MetricMathAnomalyDetector`.
|
|
2278
|
+
#
|
|
2119
2279
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2120
2280
|
#
|
|
2121
2281
|
# @example Request syntax with placeholder values
|
|
2122
2282
|
#
|
|
2123
2283
|
# resp = client.put_anomaly_detector({
|
|
2124
|
-
# namespace: "Namespace",
|
|
2125
|
-
# metric_name: "MetricName",
|
|
2284
|
+
# namespace: "Namespace",
|
|
2285
|
+
# metric_name: "MetricName",
|
|
2126
2286
|
# dimensions: [
|
|
2127
2287
|
# {
|
|
2128
2288
|
# name: "DimensionName", # required
|
|
2129
2289
|
# value: "DimensionValue", # required
|
|
2130
2290
|
# },
|
|
2131
2291
|
# ],
|
|
2132
|
-
# stat: "AnomalyDetectorMetricStat",
|
|
2292
|
+
# stat: "AnomalyDetectorMetricStat",
|
|
2133
2293
|
# configuration: {
|
|
2134
2294
|
# excluded_time_ranges: [
|
|
2135
2295
|
# {
|
|
@@ -2139,6 +2299,44 @@ module Aws::CloudWatch
|
|
|
2139
2299
|
# ],
|
|
2140
2300
|
# metric_timezone: "AnomalyDetectorMetricTimezone",
|
|
2141
2301
|
# },
|
|
2302
|
+
# single_metric_anomaly_detector: {
|
|
2303
|
+
# namespace: "Namespace",
|
|
2304
|
+
# metric_name: "MetricName",
|
|
2305
|
+
# dimensions: [
|
|
2306
|
+
# {
|
|
2307
|
+
# name: "DimensionName", # required
|
|
2308
|
+
# value: "DimensionValue", # required
|
|
2309
|
+
# },
|
|
2310
|
+
# ],
|
|
2311
|
+
# stat: "AnomalyDetectorMetricStat",
|
|
2312
|
+
# },
|
|
2313
|
+
# metric_math_anomaly_detector: {
|
|
2314
|
+
# metric_data_queries: [
|
|
2315
|
+
# {
|
|
2316
|
+
# id: "MetricId", # required
|
|
2317
|
+
# metric_stat: {
|
|
2318
|
+
# metric: { # required
|
|
2319
|
+
# namespace: "Namespace",
|
|
2320
|
+
# metric_name: "MetricName",
|
|
2321
|
+
# dimensions: [
|
|
2322
|
+
# {
|
|
2323
|
+
# name: "DimensionName", # required
|
|
2324
|
+
# value: "DimensionValue", # required
|
|
2325
|
+
# },
|
|
2326
|
+
# ],
|
|
2327
|
+
# },
|
|
2328
|
+
# period: 1, # required
|
|
2329
|
+
# stat: "Stat", # required
|
|
2330
|
+
# 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
|
|
2331
|
+
# },
|
|
2332
|
+
# expression: "MetricExpression",
|
|
2333
|
+
# label: "MetricLabel",
|
|
2334
|
+
# return_data: false,
|
|
2335
|
+
# period: 1,
|
|
2336
|
+
# account_id: "AccountId",
|
|
2337
|
+
# },
|
|
2338
|
+
# ],
|
|
2339
|
+
# },
|
|
2142
2340
|
# })
|
|
2143
2341
|
#
|
|
2144
2342
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector AWS API Documentation
|
|
@@ -2196,6 +2394,11 @@ module Aws::CloudWatch
|
|
|
2196
2394
|
# the update completely overwrites the previous configuration of the
|
|
2197
2395
|
# alarm.
|
|
2198
2396
|
#
|
|
2397
|
+
# To use this operation, you must be signed on with the
|
|
2398
|
+
# `cloudwatch:PutCompositeAlarm` permission that is scoped to `*`. You
|
|
2399
|
+
# can't create a composite alarms if your
|
|
2400
|
+
# `cloudwatch:PutCompositeAlarm` permission has a narrower scope.
|
|
2401
|
+
#
|
|
2199
2402
|
# If you are an IAM user, you must have `iam:CreateServiceLinkedRole` to
|
|
2200
2403
|
# create a composite alarm that has Systems Manager OpsItem actions.
|
|
2201
2404
|
#
|
|
@@ -2488,12 +2691,12 @@ module Aws::CloudWatch
|
|
|
2488
2691
|
# * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
|
|
2489
2692
|
# Manager OpsItem actions.
|
|
2490
2693
|
#
|
|
2491
|
-
# The first time you create an alarm in the
|
|
2492
|
-
# or by using the PutMetricAlarm API,
|
|
2493
|
-
# service-linked role for you. The
|
|
2494
|
-
# `AWSServiceRoleForCloudWatchEvents`
|
|
2495
|
-
# `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
|
|
2496
|
-
# see [Amazon Web Services service-linked role][1].
|
|
2694
|
+
# The first time you create an alarm in the Amazon Web Services
|
|
2695
|
+
# Management Console, the CLI, or by using the PutMetricAlarm API,
|
|
2696
|
+
# CloudWatch creates the necessary service-linked role for you. The
|
|
2697
|
+
# service-linked roles are called `AWSServiceRoleForCloudWatchEvents`
|
|
2698
|
+
# and `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more
|
|
2699
|
+
# information, see [Amazon Web Services service-linked role][1].
|
|
2497
2700
|
#
|
|
2498
2701
|
# **Cross-account alarms**
|
|
2499
2702
|
#
|
|
@@ -2995,7 +3198,7 @@ module Aws::CloudWatch
|
|
|
2995
3198
|
#
|
|
2996
3199
|
#
|
|
2997
3200
|
#
|
|
2998
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
|
|
3201
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html
|
|
2999
3202
|
#
|
|
3000
3203
|
# @option params [required, String] :name
|
|
3001
3204
|
# If you are creating a new metric stream, this is the name for the new
|
|
@@ -3336,7 +3539,7 @@ module Aws::CloudWatch
|
|
|
3336
3539
|
params: params,
|
|
3337
3540
|
config: config)
|
|
3338
3541
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
|
3339
|
-
context[:gem_version] = '1.
|
|
3542
|
+
context[:gem_version] = '1.58.0'
|
|
3340
3543
|
Seahorse::Client::Request.new(handlers, context)
|
|
3341
3544
|
end
|
|
3342
3545
|
|
|
@@ -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.58.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-
|
|
11
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|