aws-sdk-cloudwatch 1.87.0 → 1.90.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26d30f1437dc948ab87ef7eb2e7521dd307fa097062b21c63a0f8c43446845f2
4
- data.tar.gz: 0df867de74254246b59792c815b772fb3a7f3ac8f1b1fa01685e585b4a272107
3
+ metadata.gz: f4af752ae0beb4c7dff6a75593eb4e14690ac8e8c828d655434850ecc1e2cd2b
4
+ data.tar.gz: f7cab575e8e62dddf08b1021e9bcadc807f9e21c9c989942e894cfa5a2fc3dd2
5
5
  SHA512:
6
- metadata.gz: 51436d044d0109e6133cd71f72165a54c6d153c4e5c38cab8601862600ea46dffd6a4f464cbdede913321d8ee2ad9cff42ba5aa4e8f819d90123b228ed1ded5c
7
- data.tar.gz: a0a729ef3fd8f6a3bda0e8b61e342f3664df9be501efc4fe7391a03c2a6027a3bdfc83f851c534fbd1056ad47e19f92f4683a2126c12db6690a1d27980c98b5c
6
+ metadata.gz: 66a1ea5f115cb55e778782b4544ab3464de5610e6ee4bde65c723bc84c8551a815c67175c2ba5439550cfd9c33876ef9ec530db3259568d203dcbc18ef52240e
7
+ data.tar.gz: 8e7062573f6a5cc044367a0ed82f9440201176a065335eea37c6bacf56fcfacf1e7d3def810233387cc2dbc48ef732317d4513880ddcc13211c466de5ad20246
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.89.0 (2024-04-16)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.88.0 (2024-04-11)
15
+ ------------------
16
+
17
+ * 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.
18
+
4
19
  1.87.0 (2024-04-01)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.87.0
1
+ 1.90.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::CloudWatch
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::CloudWatch
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -337,50 +346,65 @@ module Aws::CloudWatch
337
346
  # @option options [Aws::CloudWatch::EndpointProvider] :endpoint_provider
338
347
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudWatch::EndpointParameters`
339
348
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
342
- #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
346
- #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
350
- #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
355
- #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
362
- #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
365
- #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
349
+ # @option options [Float] :http_continue_timeout (1)
350
+ # The number of seconds to wait for a 100-continue response before sending the
351
+ # request body. This option has no effect unless the request has "Expect"
352
+ # header set to "100-continue". Defaults to `nil` which disables this
353
+ # behaviour. This value can safely be set per request on the session.
354
+ #
355
+ # @option options [Float] :http_idle_timeout (5)
356
+ # The number of seconds a connection is allowed to sit idle before it
357
+ # is considered stale. Stale connections are closed and removed from the
358
+ # pool before making a request.
359
+ #
360
+ # @option options [Float] :http_open_timeout (15)
361
+ # The default number of seconds to wait for response data.
362
+ # This value can safely be set per-request on the session.
363
+ #
364
+ # @option options [URI::HTTP,String] :http_proxy
365
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
366
+ #
367
+ # @option options [Float] :http_read_timeout (60)
368
+ # The default number of seconds to wait for response data.
369
+ # This value can safely be set per-request on the session.
370
+ #
371
+ # @option options [Boolean] :http_wire_trace (false)
372
+ # When `true`, HTTP debug output will be sent to the `:logger`.
373
+ #
374
+ # @option options [Proc] :on_chunk_received
375
+ # When a Proc object is provided, it will be used as callback when each chunk
376
+ # of the response body is received. It provides three arguments: the chunk,
377
+ # the number of bytes received, and the total number of
378
+ # bytes in the response (or nil if the server did not send a `content-length`).
379
+ #
380
+ # @option options [Proc] :on_chunk_sent
381
+ # When a Proc object is provided, it will be used as callback when each chunk
382
+ # of the request body is sent. It provides three arguments: the chunk,
383
+ # the number of bytes read from the body, and the total number of
384
+ # bytes in the body.
385
+ #
386
+ # @option options [Boolean] :raise_response_errors (true)
387
+ # When `true`, response errors are raised.
388
+ #
389
+ # @option options [String] :ssl_ca_bundle
390
+ # Full path to the SSL certificate authority bundle file that should be used when
391
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
392
+ # `:ssl_ca_directory` the the system default will be used if available.
393
+ #
394
+ # @option options [String] :ssl_ca_directory
395
+ # Full path of the directory that contains the unbundled SSL certificate
396
+ # authority files for verifying peer certificates. If you do
397
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
398
+ # default will be used if available.
368
399
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
372
402
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
378
405
  #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
406
+ # @option options [Boolean] :ssl_verify_peer (true)
407
+ # When `true`, SSL peer certificates are verified when establishing a connection.
384
408
  #
385
409
  def initialize(*args)
386
410
  super
@@ -1134,6 +1158,7 @@ module Aws::CloudWatch
1134
1158
  # resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
1135
1159
  # resp.anomaly_detectors[0].configuration.metric_timezone #=> String
1136
1160
  # resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
1161
+ # resp.anomaly_detectors[0].metric_characteristics.periodic_spikes #=> Boolean
1137
1162
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.account_id #=> String
1138
1163
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
1139
1164
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
@@ -2443,6 +2468,12 @@ module Aws::CloudWatch
2443
2468
  # The configuration can also include the time zone to use for the
2444
2469
  # metric.
2445
2470
  #
2471
+ # @option params [Types::MetricCharacteristics] :metric_characteristics
2472
+ # Use this object to include parameters to provide information about
2473
+ # your metric to CloudWatch to help it build more accurate anomaly
2474
+ # detection models. Currently, it includes the `PeriodicSpikes`
2475
+ # parameter.
2476
+ #
2446
2477
  # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
2447
2478
  # A single metric anomaly detector to be created.
2448
2479
  #
@@ -2506,6 +2537,9 @@ module Aws::CloudWatch
2506
2537
  # ],
2507
2538
  # metric_timezone: "AnomalyDetectorMetricTimezone",
2508
2539
  # },
2540
+ # metric_characteristics: {
2541
+ # periodic_spikes: false,
2542
+ # },
2509
2543
  # single_metric_anomaly_detector: {
2510
2544
  # account_id: "AccountId",
2511
2545
  # namespace: "Namespace",
@@ -4104,7 +4138,7 @@ module Aws::CloudWatch
4104
4138
  params: params,
4105
4139
  config: config)
4106
4140
  context[:gem_name] = 'aws-sdk-cloudwatch'
4107
- context[:gem_version] = '1.87.0'
4141
+ context[:gem_version] = '1.90.0'
4108
4142
  Seahorse::Client::Request.new(handlers, context)
4109
4143
  end
4110
4144
 
@@ -43,18 +43,18 @@ module Aws::CloudWatch
43
43
  ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
44
44
  CompositeAlarm = Shapes::StructureShape.new(name: 'CompositeAlarm')
45
45
  CompositeAlarms = Shapes::ListShape.new(name: 'CompositeAlarms')
46
- ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
46
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException', error: {"code"=>"ConcurrentModificationException", "httpStatusCode"=>429, "senderFault"=>true})
47
47
  Counts = Shapes::ListShape.new(name: 'Counts')
48
48
  DashboardArn = Shapes::StringShape.new(name: 'DashboardArn')
49
49
  DashboardBody = Shapes::StringShape.new(name: 'DashboardBody')
50
50
  DashboardEntries = Shapes::ListShape.new(name: 'DashboardEntries')
51
51
  DashboardEntry = Shapes::StructureShape.new(name: 'DashboardEntry')
52
52
  DashboardErrorMessage = Shapes::StringShape.new(name: 'DashboardErrorMessage')
53
- DashboardInvalidInputError = Shapes::StructureShape.new(name: 'DashboardInvalidInputError')
53
+ DashboardInvalidInputError = Shapes::StructureShape.new(name: 'DashboardInvalidInputError', error: {"code"=>"InvalidParameterInput", "httpStatusCode"=>400, "senderFault"=>true})
54
54
  DashboardName = Shapes::StringShape.new(name: 'DashboardName')
55
55
  DashboardNamePrefix = Shapes::StringShape.new(name: 'DashboardNamePrefix')
56
56
  DashboardNames = Shapes::ListShape.new(name: 'DashboardNames')
57
- DashboardNotFoundError = Shapes::StructureShape.new(name: 'DashboardNotFoundError')
57
+ DashboardNotFoundError = Shapes::StructureShape.new(name: 'DashboardNotFoundError', error: {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true})
58
58
  DashboardValidationMessage = Shapes::StructureShape.new(name: 'DashboardValidationMessage')
59
59
  DashboardValidationMessages = Shapes::ListShape.new(name: 'DashboardValidationMessages')
60
60
  DataPath = Shapes::StringShape.new(name: 'DataPath')
@@ -151,15 +151,15 @@ module Aws::CloudWatch
151
151
  InsightRuleUnboundInteger = Shapes::IntegerShape.new(name: 'InsightRuleUnboundInteger')
152
152
  InsightRuleUnboundLong = Shapes::IntegerShape.new(name: 'InsightRuleUnboundLong')
153
153
  InsightRules = Shapes::ListShape.new(name: 'InsightRules')
154
- InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
155
- InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault')
156
- InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
157
- InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
158
- InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
154
+ InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault', error: {"code"=>"InternalServiceError", "httpStatusCode"=>500})
155
+ InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault', error: {"code"=>"InvalidFormat", "httpStatusCode"=>400, "senderFault"=>true})
156
+ InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken', error: {"code"=>"InvalidNextToken", "httpStatusCode"=>400, "senderFault"=>true})
157
+ InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException', error: {"code"=>"InvalidParameterCombination", "httpStatusCode"=>400, "senderFault"=>true})
158
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException', error: {"code"=>"InvalidParameterValue", "httpStatusCode"=>400, "senderFault"=>true})
159
159
  LabelOptions = Shapes::StructureShape.new(name: 'LabelOptions')
160
160
  LastModified = Shapes::TimestampShape.new(name: 'LastModified')
161
- LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
162
- LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
161
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException', error: {"code"=>"LimitExceededException", "httpStatusCode"=>400, "senderFault"=>true})
162
+ LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault', error: {"code"=>"LimitExceeded", "httpStatusCode"=>400, "senderFault"=>true})
163
163
  ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
164
164
  ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
165
165
  ListManagedInsightRulesInput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesInput')
@@ -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')
@@ -216,13 +217,14 @@ module Aws::CloudWatch
216
217
  MetricWidget = Shapes::StringShape.new(name: 'MetricWidget')
217
218
  MetricWidgetImage = Shapes::BlobShape.new(name: 'MetricWidgetImage')
218
219
  Metrics = Shapes::ListShape.new(name: 'Metrics')
219
- MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
220
+ MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException', error: {"code"=>"MissingParameter", "httpStatusCode"=>400, "senderFault"=>true})
220
221
  Namespace = Shapes::StringShape.new(name: 'Namespace')
221
222
  NextToken = Shapes::StringShape.new(name: 'NextToken')
222
223
  OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
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')
@@ -241,8 +243,8 @@ module Aws::CloudWatch
241
243
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
242
244
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
243
245
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
244
- ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
245
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
246
+ ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound', error: {"code"=>"ResourceNotFound", "httpStatusCode"=>404, "senderFault"=>true})
247
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException', error: {"code"=>"ResourceNotFoundException", "httpStatusCode"=>404, "senderFault"=>true})
246
248
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
247
249
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
248
250
  ScanBy = Shapes::StringShape.new(name: 'ScanBy')
@@ -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. The possible
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 = []
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
56
56
  # @!group service
57
57
  module Aws::CloudWatch
58
58
 
59
- GEM_VERSION = '1.87.0'
59
+ GEM_VERSION = '1.90.0'
60
60
 
61
61
  end
data/sig/client.rbs CHANGED
@@ -512,6 +512,9 @@ module Aws
512
512
  ]?,
513
513
  metric_timezone: ::String?
514
514
  },
515
+ ?metric_characteristics: {
516
+ periodic_spikes: bool?
517
+ },
515
518
  ?single_metric_anomaly_detector: {
516
519
  account_id: ::String?,
517
520
  namespace: ::String?,
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.87.0
4
+ version: 1.90.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-01 00:00:00.000000000 Z
11
+ date: 2024-04-25 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.191.0
22
+ version: 3.193.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.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement