aws-sdk-cloudwatch 1.143.0 → 1.144.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 +22 -2
- data/lib/aws-sdk-cloudwatch/client_api.rb +8 -0
- data/lib/aws-sdk-cloudwatch/types.rb +36 -1
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/types.rbs +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e1696c1c202b7eb04323f0a36ec4746db08cb6cef22065d3900130dc8a9f79d
|
|
4
|
+
data.tar.gz: 8f625e70a28a6d96870edf77b96113dee30ddb0fb4937cb52cfeb8facdbe2311
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc5b52c6dcdfd5e587878464a1f53ddda09c7edb4c8a31e3d3e32520b2b7a05e219396d61953ac3b35a2af1337c090cad3594f9cca32ca9d18309f9c70598795
|
|
7
|
+
data.tar.gz: 8de85c48b9aed4357fb5c25b857c849366c334dd838986ff4b90533f4593f3693ad9e5b9db79f60e52f540a866bcbd9248dd165cfcfb08f58d76e906a27e1aac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.144.0 (2026-07-10)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - CloudWatch now assigns a unique identifier to each anomaly detector. PutAnomalyDetector and DescribeAnomalyDetectors return this AnomalyDetectorId, which you can use to describe or delete a specific anomaly detector directly.
|
|
8
|
+
|
|
4
9
|
1.143.0 (2026-07-09)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.144.0
|
|
@@ -684,6 +684,11 @@ module Aws::CloudWatch
|
|
|
684
684
|
#
|
|
685
685
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model
|
|
686
686
|
#
|
|
687
|
+
# @option params [String] :anomaly_detector_id
|
|
688
|
+
# Specifies the unique identifier of the anomaly detector to delete. If
|
|
689
|
+
# you specify this parameter, you do not need to specify a metric to
|
|
690
|
+
# identify the detector.
|
|
691
|
+
#
|
|
687
692
|
# @option params [String] :namespace
|
|
688
693
|
# The namespace associated with the anomaly detection model to delete.
|
|
689
694
|
#
|
|
@@ -742,6 +747,7 @@ module Aws::CloudWatch
|
|
|
742
747
|
# @example Request syntax with placeholder values
|
|
743
748
|
#
|
|
744
749
|
# resp = client.delete_anomaly_detector({
|
|
750
|
+
# anomaly_detector_id: "AnomalyDetectorId",
|
|
745
751
|
# namespace: "Namespace",
|
|
746
752
|
# metric_name: "MetricName",
|
|
747
753
|
# dimensions: [
|
|
@@ -1400,6 +1406,12 @@ module Aws::CloudWatch
|
|
|
1400
1406
|
# `METRIC_MATH` to the `AnomalyDetectorTypes` array. This will return
|
|
1401
1407
|
# all metric math anomaly detectors in your account.
|
|
1402
1408
|
#
|
|
1409
|
+
# @option params [Array<String>] :anomaly_detector_ids
|
|
1410
|
+
# Specifies the unique identifiers of the anomaly detectors to describe.
|
|
1411
|
+
# You can specify up to 50 identifiers. If you specify this parameter,
|
|
1412
|
+
# you cannot also specify the `Namespace`, `MetricName`, `Dimensions`,
|
|
1413
|
+
# or `AnomalyDetectorTypes` metric filters.
|
|
1414
|
+
#
|
|
1403
1415
|
# @option params [String] :next_token
|
|
1404
1416
|
# Use the token returned by the previous operation to request the next
|
|
1405
1417
|
# page of results.
|
|
@@ -1442,6 +1454,7 @@ module Aws::CloudWatch
|
|
|
1442
1454
|
# @example Request syntax with placeholder values
|
|
1443
1455
|
#
|
|
1444
1456
|
# resp = client.describe_anomaly_detectors({
|
|
1457
|
+
# anomaly_detector_ids: ["AnomalyDetectorId"],
|
|
1445
1458
|
# next_token: "NextToken",
|
|
1446
1459
|
# max_results: 1,
|
|
1447
1460
|
# namespace: "Namespace",
|
|
@@ -1458,6 +1471,7 @@ module Aws::CloudWatch
|
|
|
1458
1471
|
# @example Response structure
|
|
1459
1472
|
#
|
|
1460
1473
|
# resp.anomaly_detectors #=> Array
|
|
1474
|
+
# resp.anomaly_detectors[0].anomaly_detector_id #=> String
|
|
1461
1475
|
# resp.anomaly_detectors[0].namespace #=> String
|
|
1462
1476
|
# resp.anomaly_detectors[0].metric_name #=> String
|
|
1463
1477
|
# resp.anomaly_detectors[0].dimensions #=> Array
|
|
@@ -3219,7 +3233,9 @@ module Aws::CloudWatch
|
|
|
3219
3233
|
# Instead, specify the metric math anomaly detector attributes as part
|
|
3220
3234
|
# of the property `MetricMathAnomalyDetector`.
|
|
3221
3235
|
#
|
|
3222
|
-
# @return [
|
|
3236
|
+
# @return [Types::PutAnomalyDetectorOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3237
|
+
#
|
|
3238
|
+
# * {Types::PutAnomalyDetectorOutput#anomaly_detector_id #anomaly_detector_id} => String
|
|
3223
3239
|
#
|
|
3224
3240
|
# @example Request syntax with placeholder values
|
|
3225
3241
|
#
|
|
@@ -3286,6 +3302,10 @@ module Aws::CloudWatch
|
|
|
3286
3302
|
# },
|
|
3287
3303
|
# })
|
|
3288
3304
|
#
|
|
3305
|
+
# @example Response structure
|
|
3306
|
+
#
|
|
3307
|
+
# resp.anomaly_detector_id #=> String
|
|
3308
|
+
#
|
|
3289
3309
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector AWS API Documentation
|
|
3290
3310
|
#
|
|
3291
3311
|
# @overload put_anomaly_detector(params = {})
|
|
@@ -5350,7 +5370,7 @@ module Aws::CloudWatch
|
|
|
5350
5370
|
tracer: tracer
|
|
5351
5371
|
)
|
|
5352
5372
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
|
5353
|
-
context[:gem_version] = '1.
|
|
5373
|
+
context[:gem_version] = '1.144.0'
|
|
5354
5374
|
Seahorse::Client::Request.new(handlers, context)
|
|
5355
5375
|
end
|
|
5356
5376
|
|
|
@@ -43,6 +43,8 @@ module Aws::CloudWatch
|
|
|
43
43
|
AnomalyDetector = Shapes::StructureShape.new(name: 'AnomalyDetector')
|
|
44
44
|
AnomalyDetectorConfiguration = Shapes::StructureShape.new(name: 'AnomalyDetectorConfiguration')
|
|
45
45
|
AnomalyDetectorExcludedTimeRanges = Shapes::ListShape.new(name: 'AnomalyDetectorExcludedTimeRanges')
|
|
46
|
+
AnomalyDetectorId = Shapes::StringShape.new(name: 'AnomalyDetectorId')
|
|
47
|
+
AnomalyDetectorIds = Shapes::ListShape.new(name: 'AnomalyDetectorIds')
|
|
46
48
|
AnomalyDetectorMetricStat = Shapes::StringShape.new(name: 'AnomalyDetectorMetricStat')
|
|
47
49
|
AnomalyDetectorMetricTimezone = Shapes::StringShape.new(name: 'AnomalyDetectorMetricTimezone')
|
|
48
50
|
AnomalyDetectorStateValue = Shapes::StringShape.new(name: 'AnomalyDetectorStateValue')
|
|
@@ -409,6 +411,7 @@ module Aws::CloudWatch
|
|
|
409
411
|
|
|
410
412
|
AlarmTypes.member = Shapes::ShapeRef.new(shape: AlarmType)
|
|
411
413
|
|
|
414
|
+
AnomalyDetector.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, location_name: "AnomalyDetectorId"))
|
|
412
415
|
AnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, deprecated: true, location_name: "Namespace", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector.Namespace property."}))
|
|
413
416
|
AnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, deprecated: true, location_name: "MetricName", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector.MetricName property."}))
|
|
414
417
|
AnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector.Dimensions property."}))
|
|
@@ -426,6 +429,8 @@ module Aws::CloudWatch
|
|
|
426
429
|
|
|
427
430
|
AnomalyDetectorExcludedTimeRanges.member = Shapes::ShapeRef.new(shape: Range)
|
|
428
431
|
|
|
432
|
+
AnomalyDetectorIds.member = Shapes::ShapeRef.new(shape: AnomalyDetectorId)
|
|
433
|
+
|
|
429
434
|
AnomalyDetectorTypes.member = Shapes::ShapeRef.new(shape: AnomalyDetectorType)
|
|
430
435
|
|
|
431
436
|
AnomalyDetectors.member = Shapes::ShapeRef.new(shape: AnomalyDetector)
|
|
@@ -517,6 +522,7 @@ module Aws::CloudWatch
|
|
|
517
522
|
DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
|
|
518
523
|
DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
|
|
519
524
|
|
|
525
|
+
DeleteAnomalyDetectorInput.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, location_name: "AnomalyDetectorId"))
|
|
520
526
|
DeleteAnomalyDetectorInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, deprecated: true, location_name: "Namespace", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector."}))
|
|
521
527
|
DeleteAnomalyDetectorInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, deprecated: true, location_name: "MetricName", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector."}))
|
|
522
528
|
DeleteAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage" => "Use SingleMetricAnomalyDetector."}))
|
|
@@ -595,6 +601,7 @@ module Aws::CloudWatch
|
|
|
595
601
|
DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
596
602
|
DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput
|
|
597
603
|
|
|
604
|
+
DescribeAnomalyDetectorsInput.add_member(:anomaly_detector_ids, Shapes::ShapeRef.new(shape: AnomalyDetectorIds, location_name: "AnomalyDetectorIds"))
|
|
598
605
|
DescribeAnomalyDetectorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
599
606
|
DescribeAnomalyDetectorsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxReturnedResultsCount, location_name: "MaxResults"))
|
|
600
607
|
DescribeAnomalyDetectorsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
|
@@ -1129,6 +1136,7 @@ module Aws::CloudWatch
|
|
|
1129
1136
|
PutAnomalyDetectorInput.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
|
|
1130
1137
|
PutAnomalyDetectorInput.struct_class = Types::PutAnomalyDetectorInput
|
|
1131
1138
|
|
|
1139
|
+
PutAnomalyDetectorOutput.add_member(:anomaly_detector_id, Shapes::ShapeRef.new(shape: AnomalyDetectorId, location_name: "AnomalyDetectorId"))
|
|
1132
1140
|
PutAnomalyDetectorOutput.struct_class = Types::PutAnomalyDetectorOutput
|
|
1133
1141
|
|
|
1134
1142
|
PutCompositeAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
|
@@ -173,6 +173,16 @@ module Aws::CloudWatch
|
|
|
173
173
|
# account is a monitoring account, the metric can be in the same account
|
|
174
174
|
# or a source account.
|
|
175
175
|
#
|
|
176
|
+
# @!attribute [rw] anomaly_detector_id
|
|
177
|
+
# The unique identifier of the anomaly detector.
|
|
178
|
+
#
|
|
179
|
+
# <note markdown="1"> The identifier does not restrict access to a specific anomaly
|
|
180
|
+
# detector in an IAM policy. Permissions for anomaly detector
|
|
181
|
+
# operations apply to all anomaly detectors in the account.
|
|
182
|
+
#
|
|
183
|
+
# </note>
|
|
184
|
+
# @return [String]
|
|
185
|
+
#
|
|
176
186
|
# @!attribute [rw] namespace
|
|
177
187
|
# The namespace of the metric associated with the anomaly detection
|
|
178
188
|
# model.
|
|
@@ -218,6 +228,7 @@ module Aws::CloudWatch
|
|
|
218
228
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/AnomalyDetector AWS API Documentation
|
|
219
229
|
#
|
|
220
230
|
class AnomalyDetector < Struct.new(
|
|
231
|
+
:anomaly_detector_id,
|
|
221
232
|
:namespace,
|
|
222
233
|
:metric_name,
|
|
223
234
|
:dimensions,
|
|
@@ -612,6 +623,12 @@ module Aws::CloudWatch
|
|
|
612
623
|
include Aws::Structure
|
|
613
624
|
end
|
|
614
625
|
|
|
626
|
+
# @!attribute [rw] anomaly_detector_id
|
|
627
|
+
# Specifies the unique identifier of the anomaly detector to delete.
|
|
628
|
+
# If you specify this parameter, you do not need to specify a metric
|
|
629
|
+
# to identify the detector.
|
|
630
|
+
# @return [String]
|
|
631
|
+
#
|
|
615
632
|
# @!attribute [rw] namespace
|
|
616
633
|
# The namespace associated with the anomaly detection model to delete.
|
|
617
634
|
# @return [String]
|
|
@@ -675,6 +692,7 @@ module Aws::CloudWatch
|
|
|
675
692
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetectorInput AWS API Documentation
|
|
676
693
|
#
|
|
677
694
|
class DeleteAnomalyDetectorInput < Struct.new(
|
|
695
|
+
:anomaly_detector_id,
|
|
678
696
|
:namespace,
|
|
679
697
|
:metric_name,
|
|
680
698
|
:dimensions,
|
|
@@ -1063,6 +1081,13 @@ module Aws::CloudWatch
|
|
|
1063
1081
|
include Aws::Structure
|
|
1064
1082
|
end
|
|
1065
1083
|
|
|
1084
|
+
# @!attribute [rw] anomaly_detector_ids
|
|
1085
|
+
# Specifies the unique identifiers of the anomaly detectors to
|
|
1086
|
+
# describe. You can specify up to 50 identifiers. If you specify this
|
|
1087
|
+
# parameter, you cannot also specify the `Namespace`, `MetricName`,
|
|
1088
|
+
# `Dimensions`, or `AnomalyDetectorTypes` metric filters.
|
|
1089
|
+
# @return [Array<String>]
|
|
1090
|
+
#
|
|
1066
1091
|
# @!attribute [rw] next_token
|
|
1067
1092
|
# Use the token returned by the previous operation to request the next
|
|
1068
1093
|
# page of results.
|
|
@@ -1104,6 +1129,7 @@ module Aws::CloudWatch
|
|
|
1104
1129
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectorsInput AWS API Documentation
|
|
1105
1130
|
#
|
|
1106
1131
|
class DescribeAnomalyDetectorsInput < Struct.new(
|
|
1132
|
+
:anomaly_detector_ids,
|
|
1107
1133
|
:next_token,
|
|
1108
1134
|
:max_results,
|
|
1109
1135
|
:namespace,
|
|
@@ -4183,9 +4209,18 @@ module Aws::CloudWatch
|
|
|
4183
4209
|
include Aws::Structure
|
|
4184
4210
|
end
|
|
4185
4211
|
|
|
4212
|
+
# @!attribute [rw] anomaly_detector_id
|
|
4213
|
+
# The unique identifier of the anomaly detector that you created or
|
|
4214
|
+
# updated.
|
|
4215
|
+
# @return [String]
|
|
4216
|
+
#
|
|
4186
4217
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetectorOutput AWS API Documentation
|
|
4187
4218
|
#
|
|
4188
|
-
class PutAnomalyDetectorOutput <
|
|
4219
|
+
class PutAnomalyDetectorOutput < Struct.new(
|
|
4220
|
+
:anomaly_detector_id)
|
|
4221
|
+
SENSITIVE = []
|
|
4222
|
+
include Aws::Structure
|
|
4223
|
+
end
|
|
4189
4224
|
|
|
4190
4225
|
# @!attribute [rw] actions_enabled
|
|
4191
4226
|
# Indicates whether actions should be executed during any changes to
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -106,6 +106,7 @@ module Aws
|
|
|
106
106
|
end
|
|
107
107
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#delete_anomaly_detector-instance_method
|
|
108
108
|
def delete_anomaly_detector: (
|
|
109
|
+
?anomaly_detector_id: ::String,
|
|
109
110
|
?namespace: ::String,
|
|
110
111
|
?metric_name: ::String,
|
|
111
112
|
?dimensions: Array[
|
|
@@ -228,6 +229,7 @@ module Aws
|
|
|
228
229
|
end
|
|
229
230
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#describe_anomaly_detectors-instance_method
|
|
230
231
|
def describe_anomaly_detectors: (
|
|
232
|
+
?anomaly_detector_ids: Array[::String],
|
|
231
233
|
?next_token: ::String,
|
|
232
234
|
?max_results: ::Integer,
|
|
233
235
|
?namespace: ::String,
|
|
@@ -557,6 +559,7 @@ module Aws
|
|
|
557
559
|
|
|
558
560
|
interface _PutAnomalyDetectorResponseSuccess
|
|
559
561
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutAnomalyDetectorOutput]
|
|
562
|
+
def anomaly_detector_id: () -> ::String
|
|
560
563
|
end
|
|
561
564
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#put_anomaly_detector-instance_method
|
|
562
565
|
def put_anomaly_detector: (
|
data/sig/types.rbs
CHANGED
|
@@ -45,6 +45,7 @@ module Aws::CloudWatch
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
class AnomalyDetector
|
|
48
|
+
attr_accessor anomaly_detector_id: ::String
|
|
48
49
|
attr_accessor namespace: ::String
|
|
49
50
|
attr_accessor metric_name: ::String
|
|
50
51
|
attr_accessor dimensions: ::Array[Types::Dimension]
|
|
@@ -151,6 +152,7 @@ module Aws::CloudWatch
|
|
|
151
152
|
end
|
|
152
153
|
|
|
153
154
|
class DeleteAnomalyDetectorInput
|
|
155
|
+
attr_accessor anomaly_detector_id: ::String
|
|
154
156
|
attr_accessor namespace: ::String
|
|
155
157
|
attr_accessor metric_name: ::String
|
|
156
158
|
attr_accessor dimensions: ::Array[Types::Dimension]
|
|
@@ -258,6 +260,7 @@ module Aws::CloudWatch
|
|
|
258
260
|
end
|
|
259
261
|
|
|
260
262
|
class DescribeAnomalyDetectorsInput
|
|
263
|
+
attr_accessor anomaly_detector_ids: ::Array[::String]
|
|
261
264
|
attr_accessor next_token: ::String
|
|
262
265
|
attr_accessor max_results: ::Integer
|
|
263
266
|
attr_accessor namespace: ::String
|
|
@@ -897,7 +900,9 @@ module Aws::CloudWatch
|
|
|
897
900
|
SENSITIVE: []
|
|
898
901
|
end
|
|
899
902
|
|
|
900
|
-
class PutAnomalyDetectorOutput
|
|
903
|
+
class PutAnomalyDetectorOutput
|
|
904
|
+
attr_accessor anomaly_detector_id: ::String
|
|
905
|
+
SENSITIVE: []
|
|
901
906
|
end
|
|
902
907
|
|
|
903
908
|
class PutCompositeAlarmInput
|