aws-sdk-cloudwatch 1.87.0 → 1.88.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +11 -1
- data/lib/aws-sdk-cloudwatch/client_api.rb +7 -0
- data/lib/aws-sdk-cloudwatch/types.rb +37 -2
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/types.rbs +7 -0
- 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: 503ae029db1cabd915c02f93be1ff57273b3cb65ad17c5e3d1040a6997665df1
|
4
|
+
data.tar.gz: 9b2bd2a6620f559a2fa0cb080eb9c8e3314a486537ce11d745eb777ff9c6d03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962c4b2c2e9a794dab9a05ce56ef0beca5279a5d31ce8dc1eecf67bcdf0c5746f444e4a23bde2ad27ba3b30a67c8818935bf20a7c53e3214a6c93e0ac5f16352
|
7
|
+
data.tar.gz: de41f911c570f190206b25f61a24c25feb2c9caf5891d7dc10e0cf8c7dfd1460f75acb79b0e0d9f8dc90ed5c0a8c8323e670123356b0de843893a50337904f9d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.88.0 (2024-04-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for Metric Characteristics for CloudWatch Anomaly Detection. Anomaly Detector now takes Metric Characteristics object with Periodic Spikes boolean field that tells Anomaly Detection that spikes that repeat at the same time every week are part of the expected pattern.
|
8
|
+
|
4
9
|
1.87.0 (2024-04-01)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.88.0
|
@@ -1134,6 +1134,7 @@ module Aws::CloudWatch
|
|
1134
1134
|
# resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
|
1135
1135
|
# resp.anomaly_detectors[0].configuration.metric_timezone #=> String
|
1136
1136
|
# resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
|
1137
|
+
# resp.anomaly_detectors[0].metric_characteristics.periodic_spikes #=> Boolean
|
1137
1138
|
# resp.anomaly_detectors[0].single_metric_anomaly_detector.account_id #=> String
|
1138
1139
|
# resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
|
1139
1140
|
# resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
|
@@ -2443,6 +2444,12 @@ module Aws::CloudWatch
|
|
2443
2444
|
# The configuration can also include the time zone to use for the
|
2444
2445
|
# metric.
|
2445
2446
|
#
|
2447
|
+
# @option params [Types::MetricCharacteristics] :metric_characteristics
|
2448
|
+
# Use this object to include parameters to provide information about
|
2449
|
+
# your metric to CloudWatch to help it build more accurate anomaly
|
2450
|
+
# detection models. Currently, it includes the `PeriodicSpikes`
|
2451
|
+
# parameter.
|
2452
|
+
#
|
2446
2453
|
# @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
|
2447
2454
|
# A single metric anomaly detector to be created.
|
2448
2455
|
#
|
@@ -2506,6 +2513,9 @@ module Aws::CloudWatch
|
|
2506
2513
|
# ],
|
2507
2514
|
# metric_timezone: "AnomalyDetectorMetricTimezone",
|
2508
2515
|
# },
|
2516
|
+
# metric_characteristics: {
|
2517
|
+
# periodic_spikes: false,
|
2518
|
+
# },
|
2509
2519
|
# single_metric_anomaly_detector: {
|
2510
2520
|
# account_id: "AccountId",
|
2511
2521
|
# namespace: "Namespace",
|
@@ -4104,7 +4114,7 @@ module Aws::CloudWatch
|
|
4104
4114
|
params: params,
|
4105
4115
|
config: config)
|
4106
4116
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
4107
|
-
context[:gem_version] = '1.
|
4117
|
+
context[:gem_version] = '1.88.0'
|
4108
4118
|
Seahorse::Client::Request.new(handlers, context)
|
4109
4119
|
end
|
4110
4120
|
|
@@ -185,6 +185,7 @@ module Aws::CloudWatch
|
|
185
185
|
Metric = Shapes::StructureShape.new(name: 'Metric')
|
186
186
|
MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
|
187
187
|
MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
|
188
|
+
MetricCharacteristics = Shapes::StructureShape.new(name: 'MetricCharacteristics')
|
188
189
|
MetricData = Shapes::ListShape.new(name: 'MetricData')
|
189
190
|
MetricDataQueries = Shapes::ListShape.new(name: 'MetricDataQueries')
|
190
191
|
MetricDataQuery = Shapes::StructureShape.new(name: 'MetricDataQuery')
|
@@ -223,6 +224,7 @@ module Aws::CloudWatch
|
|
223
224
|
OwningAccounts = Shapes::ListShape.new(name: 'OwningAccounts')
|
224
225
|
PartialFailure = Shapes::StructureShape.new(name: 'PartialFailure')
|
225
226
|
Period = Shapes::IntegerShape.new(name: 'Period')
|
227
|
+
PeriodicSpikes = Shapes::BooleanShape.new(name: 'PeriodicSpikes')
|
226
228
|
PutAnomalyDetectorInput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorInput')
|
227
229
|
PutAnomalyDetectorOutput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorOutput')
|
228
230
|
PutCompositeAlarmInput = Shapes::StructureShape.new(name: 'PutCompositeAlarmInput')
|
@@ -300,6 +302,7 @@ module Aws::CloudWatch
|
|
300
302
|
AnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.Stat property."}))
|
301
303
|
AnomalyDetector.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
|
302
304
|
AnomalyDetector.add_member(:state_value, Shapes::ShapeRef.new(shape: AnomalyDetectorStateValue, location_name: "StateValue"))
|
305
|
+
AnomalyDetector.add_member(:metric_characteristics, Shapes::ShapeRef.new(shape: MetricCharacteristics, location_name: "MetricCharacteristics"))
|
303
306
|
AnomalyDetector.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
|
304
307
|
AnomalyDetector.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
|
305
308
|
AnomalyDetector.struct_class = Types::AnomalyDetector
|
@@ -754,6 +757,9 @@ module Aws::CloudWatch
|
|
754
757
|
|
755
758
|
MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
|
756
759
|
|
760
|
+
MetricCharacteristics.add_member(:periodic_spikes, Shapes::ShapeRef.new(shape: PeriodicSpikes, location_name: "PeriodicSpikes"))
|
761
|
+
MetricCharacteristics.struct_class = Types::MetricCharacteristics
|
762
|
+
|
757
763
|
MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum)
|
758
764
|
|
759
765
|
MetricDataQueries.member = Shapes::ShapeRef.new(shape: MetricDataQuery)
|
@@ -852,6 +858,7 @@ module Aws::CloudWatch
|
|
852
858
|
PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
|
853
859
|
PutAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
|
854
860
|
PutAnomalyDetectorInput.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
|
861
|
+
PutAnomalyDetectorInput.add_member(:metric_characteristics, Shapes::ShapeRef.new(shape: MetricCharacteristics, location_name: "MetricCharacteristics"))
|
855
862
|
PutAnomalyDetectorInput.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
|
856
863
|
PutAnomalyDetectorInput.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
|
857
864
|
PutAnomalyDetectorInput.struct_class = Types::PutAnomalyDetectorInput
|
@@ -81,10 +81,16 @@ module Aws::CloudWatch
|
|
81
81
|
# @return [Types::AnomalyDetectorConfiguration]
|
82
82
|
#
|
83
83
|
# @!attribute [rw] state_value
|
84
|
-
# The current status of the anomaly detector's training.
|
85
|
-
# values are `TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA`
|
84
|
+
# The current status of the anomaly detector's training.
|
86
85
|
# @return [String]
|
87
86
|
#
|
87
|
+
# @!attribute [rw] metric_characteristics
|
88
|
+
# This object includes parameters that you can use to provide
|
89
|
+
# information about your metric to CloudWatch to help it build more
|
90
|
+
# accurate anomaly detection models. Currently, it includes the
|
91
|
+
# `PeriodicSpikes` parameter.
|
92
|
+
# @return [Types::MetricCharacteristics]
|
93
|
+
#
|
88
94
|
# @!attribute [rw] single_metric_anomaly_detector
|
89
95
|
# The CloudWatch metric and statistic for this anomaly detector.
|
90
96
|
# @return [Types::SingleMetricAnomalyDetector]
|
@@ -102,6 +108,7 @@ module Aws::CloudWatch
|
|
102
108
|
:stat,
|
103
109
|
:configuration,
|
104
110
|
:state_value,
|
111
|
+
:metric_characteristics,
|
105
112
|
:single_metric_anomaly_detector,
|
106
113
|
:metric_math_anomaly_detector)
|
107
114
|
SENSITIVE = []
|
@@ -2582,6 +2589,26 @@ module Aws::CloudWatch
|
|
2582
2589
|
include Aws::Structure
|
2583
2590
|
end
|
2584
2591
|
|
2592
|
+
# This object includes parameters that you can use to provide
|
2593
|
+
# information to CloudWatch to help it build more accurate anomaly
|
2594
|
+
# detection models.
|
2595
|
+
#
|
2596
|
+
# @!attribute [rw] periodic_spikes
|
2597
|
+
# Set this parameter to `true` if values for this metric consistently
|
2598
|
+
# include spikes that should not be considered to be anomalies. With
|
2599
|
+
# this set to `true`, CloudWatch will expect to see spikes that
|
2600
|
+
# occurred consistently during the model training period, and won't
|
2601
|
+
# flag future similar spikes as anomalies.
|
2602
|
+
# @return [Boolean]
|
2603
|
+
#
|
2604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricCharacteristics AWS API Documentation
|
2605
|
+
#
|
2606
|
+
class MetricCharacteristics < Struct.new(
|
2607
|
+
:periodic_spikes)
|
2608
|
+
SENSITIVE = []
|
2609
|
+
include Aws::Structure
|
2610
|
+
end
|
2611
|
+
|
2585
2612
|
# This structure is used in both `GetMetricData` and `PutMetricAlarm`.
|
2586
2613
|
# The supported use of this structure is different for those two
|
2587
2614
|
# operations.
|
@@ -3183,6 +3210,13 @@ module Aws::CloudWatch
|
|
3183
3210
|
# metric.
|
3184
3211
|
# @return [Types::AnomalyDetectorConfiguration]
|
3185
3212
|
#
|
3213
|
+
# @!attribute [rw] metric_characteristics
|
3214
|
+
# Use this object to include parameters to provide information about
|
3215
|
+
# your metric to CloudWatch to help it build more accurate anomaly
|
3216
|
+
# detection models. Currently, it includes the `PeriodicSpikes`
|
3217
|
+
# parameter.
|
3218
|
+
# @return [Types::MetricCharacteristics]
|
3219
|
+
#
|
3186
3220
|
# @!attribute [rw] single_metric_anomaly_detector
|
3187
3221
|
# A single metric anomaly detector to be created.
|
3188
3222
|
#
|
@@ -3233,6 +3267,7 @@ module Aws::CloudWatch
|
|
3233
3267
|
:dimensions,
|
3234
3268
|
:stat,
|
3235
3269
|
:configuration,
|
3270
|
+
:metric_characteristics,
|
3236
3271
|
:single_metric_anomaly_detector,
|
3237
3272
|
:metric_math_anomaly_detector)
|
3238
3273
|
SENSITIVE = []
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
data/sig/client.rbs
CHANGED
data/sig/types.rbs
CHANGED
@@ -25,6 +25,7 @@ module Aws::CloudWatch
|
|
25
25
|
attr_accessor stat: ::String
|
26
26
|
attr_accessor configuration: Types::AnomalyDetectorConfiguration
|
27
27
|
attr_accessor state_value: ("PENDING_TRAINING" | "TRAINED_INSUFFICIENT_DATA" | "TRAINED")
|
28
|
+
attr_accessor metric_characteristics: Types::MetricCharacteristics
|
28
29
|
attr_accessor single_metric_anomaly_detector: Types::SingleMetricAnomalyDetector
|
29
30
|
attr_accessor metric_math_anomaly_detector: Types::MetricMathAnomalyDetector
|
30
31
|
SENSITIVE: []
|
@@ -572,6 +573,11 @@ module Aws::CloudWatch
|
|
572
573
|
SENSITIVE: []
|
573
574
|
end
|
574
575
|
|
576
|
+
class MetricCharacteristics
|
577
|
+
attr_accessor periodic_spikes: bool
|
578
|
+
SENSITIVE: []
|
579
|
+
end
|
580
|
+
|
575
581
|
class MetricDataQuery
|
576
582
|
attr_accessor id: ::String
|
577
583
|
attr_accessor metric_stat: Types::MetricStat
|
@@ -667,6 +673,7 @@ module Aws::CloudWatch
|
|
667
673
|
attr_accessor dimensions: ::Array[Types::Dimension]
|
668
674
|
attr_accessor stat: ::String
|
669
675
|
attr_accessor configuration: Types::AnomalyDetectorConfiguration
|
676
|
+
attr_accessor metric_characteristics: Types::MetricCharacteristics
|
670
677
|
attr_accessor single_metric_anomaly_detector: Types::SingleMetricAnomalyDetector
|
671
678
|
attr_accessor metric_math_anomaly_detector: Types::MetricMathAnomalyDetector
|
672
679
|
SENSITIVE: []
|
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.88.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: 2024-04-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|