aws-sdk-lookoutmetrics 1.19.0 → 1.20.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: 59345fbf66785eff41ce5e27028071fd1692386ccf4971410d915ffbc37da532
4
- data.tar.gz: '0794e1c7b207ce9f080c79d38dbf6e68e281d72661b94686b65e4cd62ee999be'
3
+ metadata.gz: d0e847bae531bbd51387eb71c4a7ae26fdb4befa7a1b4fdffdb4911920078ebe
4
+ data.tar.gz: 49714e69e68140e2356c942fc8f9e66d8ea0c24a95a30a59a3c6a2361fe75d14
5
5
  SHA512:
6
- metadata.gz: d1cca1445efe1da70413424dc0eeaeb9178b96920e8f0b3e7a0a707e050e6489c1a097e28601fddc4213a0c86da4634c2c8a797e78ebcf911fff41a3323e4bc4
7
- data.tar.gz: b57f73391239f67a394106874fa974cf9a0be128439d9667bdcd91b3ece1e4d910b85979a5296fed44179db304a1a63459659ccb7ed4ea9f6a1c650ce503f597
6
+ metadata.gz: 8b19490fdd6be300c33e8468b490d915713374de06b70ca1f12aa429731864f6d40cfa840ae7ea05f75a17bdb0f523ad8bc1d6be62bfe38311e0e310c238d562
7
+ data.tar.gz: 7bb59da3333c5528f161ffc56b9555d862cfe1ab27bdbf9cb293e58f01566f2b4a3e50edb1d589aa34bce98241994b49f6c0e06a3e3858e6c3821fa7a732a2ed
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2022-06-14)
5
+ ------------------
6
+
7
+ * Feature - Adding filters to Alert and adding new UpdateAlert API.
8
+
4
9
  1.19.0 (2022-05-31)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.20.0
@@ -400,7 +400,7 @@ module Aws::LookoutMetrics
400
400
  # @option params [required, String] :alert_name
401
401
  # The name of the alert.
402
402
  #
403
- # @option params [required, Integer] :alert_sensitivity_threshold
403
+ # @option params [Integer] :alert_sensitivity_threshold
404
404
  # An integer from 0 to 100 specifying the alert sensitivity threshold.
405
405
  #
406
406
  # @option params [String] :alert_description
@@ -419,6 +419,10 @@ module Aws::LookoutMetrics
419
419
  #
420
420
  # [1]: https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
421
421
  #
422
+ # @option params [Types::AlertFilters] :alert_filters
423
+ # The configuration of the alert filters, containing MetricList and
424
+ # DimensionFilterList.
425
+ #
422
426
  # @return [Types::CreateAlertResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
423
427
  #
424
428
  # * {Types::CreateAlertResponse#alert_arn #alert_arn} => String
@@ -427,7 +431,7 @@ module Aws::LookoutMetrics
427
431
  #
428
432
  # resp = client.create_alert({
429
433
  # alert_name: "AlertName", # required
430
- # alert_sensitivity_threshold: 1, # required
434
+ # alert_sensitivity_threshold: 1,
431
435
  # alert_description: "AlertDescription",
432
436
  # anomaly_detector_arn: "Arn", # required
433
437
  # action: { # required
@@ -444,6 +448,15 @@ module Aws::LookoutMetrics
444
448
  # tags: {
445
449
  # "TagKey" => "TagValue",
446
450
  # },
451
+ # alert_filters: {
452
+ # metric_list: ["MetricName"],
453
+ # dimension_filter_list: [
454
+ # {
455
+ # dimension_name: "ColumnName",
456
+ # dimension_value_list: ["DimensionValue"],
457
+ # },
458
+ # ],
459
+ # },
447
460
  # })
448
461
  #
449
462
  # @example Response structure
@@ -769,6 +782,12 @@ module Aws::LookoutMetrics
769
782
  # resp.alert.alert_status #=> String, one of "ACTIVE", "INACTIVE"
770
783
  # resp.alert.last_modification_time #=> Time
771
784
  # resp.alert.creation_time #=> Time
785
+ # resp.alert.alert_filters.metric_list #=> Array
786
+ # resp.alert.alert_filters.metric_list[0] #=> String
787
+ # resp.alert.alert_filters.dimension_filter_list #=> Array
788
+ # resp.alert.alert_filters.dimension_filter_list[0].dimension_name #=> String
789
+ # resp.alert.alert_filters.dimension_filter_list[0].dimension_value_list #=> Array
790
+ # resp.alert.alert_filters.dimension_filter_list[0].dimension_value_list[0] #=> String
772
791
  #
773
792
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAlert AWS API Documentation
774
793
  #
@@ -1661,6 +1680,69 @@ module Aws::LookoutMetrics
1661
1680
  req.send_request(options)
1662
1681
  end
1663
1682
 
1683
+ # Make changes to an existing alert.
1684
+ #
1685
+ # @option params [required, String] :alert_arn
1686
+ # The ARN of the alert to update.
1687
+ #
1688
+ # @option params [String] :alert_description
1689
+ # A description of the alert.
1690
+ #
1691
+ # @option params [Integer] :alert_sensitivity_threshold
1692
+ # An integer from 0 to 100 specifying the alert sensitivity threshold.
1693
+ #
1694
+ # @option params [Types::Action] :action
1695
+ # Action that will be triggered when there is an alert.
1696
+ #
1697
+ # @option params [Types::AlertFilters] :alert_filters
1698
+ # The configuration of the alert filters, containing MetricList and
1699
+ # DimensionFilterList.
1700
+ #
1701
+ # @return [Types::UpdateAlertResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1702
+ #
1703
+ # * {Types::UpdateAlertResponse#alert_arn #alert_arn} => String
1704
+ #
1705
+ # @example Request syntax with placeholder values
1706
+ #
1707
+ # resp = client.update_alert({
1708
+ # alert_arn: "Arn", # required
1709
+ # alert_description: "AlertDescription",
1710
+ # alert_sensitivity_threshold: 1,
1711
+ # action: {
1712
+ # sns_configuration: {
1713
+ # role_arn: "Arn", # required
1714
+ # sns_topic_arn: "Arn", # required
1715
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
1716
+ # },
1717
+ # lambda_configuration: {
1718
+ # role_arn: "Arn", # required
1719
+ # lambda_arn: "Arn", # required
1720
+ # },
1721
+ # },
1722
+ # alert_filters: {
1723
+ # metric_list: ["MetricName"],
1724
+ # dimension_filter_list: [
1725
+ # {
1726
+ # dimension_name: "ColumnName",
1727
+ # dimension_value_list: ["DimensionValue"],
1728
+ # },
1729
+ # ],
1730
+ # },
1731
+ # })
1732
+ #
1733
+ # @example Response structure
1734
+ #
1735
+ # resp.alert_arn #=> String
1736
+ #
1737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAlert AWS API Documentation
1738
+ #
1739
+ # @overload update_alert(params = {})
1740
+ # @param [Hash] params ({})
1741
+ def update_alert(params = {}, options = {})
1742
+ req = build_request(:update_alert, params)
1743
+ req.send_request(options)
1744
+ end
1745
+
1664
1746
  # Updates a detector. After activation, you can only change a
1665
1747
  # detector's ingestion delay and description.
1666
1748
  #
@@ -1852,7 +1934,7 @@ module Aws::LookoutMetrics
1852
1934
  params: params,
1853
1935
  config: config)
1854
1936
  context[:gem_name] = 'aws-sdk-lookoutmetrics'
1855
- context[:gem_version] = '1.19.0'
1937
+ context[:gem_version] = '1.20.0'
1856
1938
  Seahorse::Client::Request.new(handlers, context)
1857
1939
  end
1858
1940
 
@@ -20,6 +20,7 @@ module Aws::LookoutMetrics
20
20
  AggregationFunction = Shapes::StringShape.new(name: 'AggregationFunction')
21
21
  Alert = Shapes::StructureShape.new(name: 'Alert')
22
22
  AlertDescription = Shapes::StringShape.new(name: 'AlertDescription')
23
+ AlertFilters = Shapes::StructureShape.new(name: 'AlertFilters')
23
24
  AlertName = Shapes::StringShape.new(name: 'AlertName')
24
25
  AlertStatus = Shapes::StringShape.new(name: 'AlertStatus')
25
26
  AlertSummary = Shapes::StructureShape.new(name: 'AlertSummary')
@@ -102,12 +103,15 @@ module Aws::LookoutMetrics
102
103
  DetectedS3SourceConfig = Shapes::StructureShape.new(name: 'DetectedS3SourceConfig')
103
104
  DimensionContribution = Shapes::StructureShape.new(name: 'DimensionContribution')
104
105
  DimensionContributionList = Shapes::ListShape.new(name: 'DimensionContributionList')
106
+ DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
107
+ DimensionFilterList = Shapes::ListShape.new(name: 'DimensionFilterList')
105
108
  DimensionList = Shapes::ListShape.new(name: 'DimensionList')
106
109
  DimensionNameValue = Shapes::StructureShape.new(name: 'DimensionNameValue')
107
110
  DimensionNameValueList = Shapes::ListShape.new(name: 'DimensionNameValueList')
108
111
  DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
109
112
  DimensionValueContribution = Shapes::StructureShape.new(name: 'DimensionValueContribution')
110
113
  DimensionValueContributionList = Shapes::ListShape.new(name: 'DimensionValueContributionList')
114
+ DimensionValueList = Shapes::ListShape.new(name: 'DimensionValueList')
111
115
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
112
116
  ExecutionList = Shapes::ListShape.new(name: 'ExecutionList')
113
117
  ExecutionStatus = Shapes::StructureShape.new(name: 'ExecutionStatus')
@@ -158,6 +162,7 @@ module Aws::LookoutMetrics
158
162
  MetricLevelImpactList = Shapes::ListShape.new(name: 'MetricLevelImpactList')
159
163
  MetricList = Shapes::ListShape.new(name: 'MetricList')
160
164
  MetricName = Shapes::StringShape.new(name: 'MetricName')
165
+ MetricNameList = Shapes::ListShape.new(name: 'MetricNameList')
161
166
  MetricSetDescription = Shapes::StringShape.new(name: 'MetricSetDescription')
162
167
  MetricSetName = Shapes::StringShape.new(name: 'MetricSetName')
163
168
  MetricSetSummary = Shapes::StructureShape.new(name: 'MetricSetSummary')
@@ -224,6 +229,8 @@ module Aws::LookoutMetrics
224
229
  UUID = Shapes::StringShape.new(name: 'UUID')
225
230
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
226
231
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
232
+ UpdateAlertRequest = Shapes::StructureShape.new(name: 'UpdateAlertRequest')
233
+ UpdateAlertResponse = Shapes::StructureShape.new(name: 'UpdateAlertResponse')
227
234
  UpdateAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'UpdateAnomalyDetectorRequest')
228
235
  UpdateAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'UpdateAnomalyDetectorResponse')
229
236
  UpdateMetricSetRequest = Shapes::StructureShape.new(name: 'UpdateMetricSetRequest')
@@ -256,8 +263,13 @@ module Aws::LookoutMetrics
256
263
  Alert.add_member(:alert_status, Shapes::ShapeRef.new(shape: AlertStatus, location_name: "AlertStatus"))
257
264
  Alert.add_member(:last_modification_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModificationTime"))
258
265
  Alert.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
266
+ Alert.add_member(:alert_filters, Shapes::ShapeRef.new(shape: AlertFilters, location_name: "AlertFilters"))
259
267
  Alert.struct_class = Types::Alert
260
268
 
269
+ AlertFilters.add_member(:metric_list, Shapes::ShapeRef.new(shape: MetricNameList, location_name: "MetricList"))
270
+ AlertFilters.add_member(:dimension_filter_list, Shapes::ShapeRef.new(shape: DimensionFilterList, location_name: "DimensionFilterList"))
271
+ AlertFilters.struct_class = Types::AlertFilters
272
+
261
273
  AlertSummary.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AlertArn"))
262
274
  AlertSummary.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AnomalyDetectorArn"))
263
275
  AlertSummary.add_member(:alert_name, Shapes::ShapeRef.new(shape: AlertName, location_name: "AlertName"))
@@ -370,11 +382,12 @@ module Aws::LookoutMetrics
370
382
  ContributionMatrix.struct_class = Types::ContributionMatrix
371
383
 
372
384
  CreateAlertRequest.add_member(:alert_name, Shapes::ShapeRef.new(shape: AlertName, required: true, location_name: "AlertName"))
373
- CreateAlertRequest.add_member(:alert_sensitivity_threshold, Shapes::ShapeRef.new(shape: SensitivityThreshold, required: true, location_name: "AlertSensitivityThreshold"))
385
+ CreateAlertRequest.add_member(:alert_sensitivity_threshold, Shapes::ShapeRef.new(shape: SensitivityThreshold, location_name: "AlertSensitivityThreshold"))
374
386
  CreateAlertRequest.add_member(:alert_description, Shapes::ShapeRef.new(shape: AlertDescription, location_name: "AlertDescription"))
375
387
  CreateAlertRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
376
388
  CreateAlertRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
377
389
  CreateAlertRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
390
+ CreateAlertRequest.add_member(:alert_filters, Shapes::ShapeRef.new(shape: AlertFilters, location_name: "AlertFilters"))
378
391
  CreateAlertRequest.struct_class = Types::CreateAlertRequest
379
392
 
380
393
  CreateAlertResponse.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AlertArn"))
@@ -523,6 +536,12 @@ module Aws::LookoutMetrics
523
536
 
524
537
  DimensionContributionList.member = Shapes::ShapeRef.new(shape: DimensionContribution)
525
538
 
539
+ DimensionFilter.add_member(:dimension_name, Shapes::ShapeRef.new(shape: ColumnName, location_name: "DimensionName"))
540
+ DimensionFilter.add_member(:dimension_value_list, Shapes::ShapeRef.new(shape: DimensionValueList, location_name: "DimensionValueList"))
541
+ DimensionFilter.struct_class = Types::DimensionFilter
542
+
543
+ DimensionFilterList.member = Shapes::ShapeRef.new(shape: DimensionFilter)
544
+
526
545
  DimensionList.member = Shapes::ShapeRef.new(shape: ColumnName)
527
546
 
528
547
  DimensionNameValue.add_member(:dimension_name, Shapes::ShapeRef.new(shape: ColumnName, required: true, location_name: "DimensionName"))
@@ -537,6 +556,8 @@ module Aws::LookoutMetrics
537
556
 
538
557
  DimensionValueContributionList.member = Shapes::ShapeRef.new(shape: DimensionValueContribution)
539
558
 
559
+ DimensionValueList.member = Shapes::ShapeRef.new(shape: DimensionValue)
560
+
540
561
  ExecutionList.member = Shapes::ShapeRef.new(shape: ExecutionStatus)
541
562
 
542
563
  ExecutionStatus.add_member(:timestamp, Shapes::ShapeRef.new(shape: TimestampString, location_name: "Timestamp"))
@@ -685,6 +706,8 @@ module Aws::LookoutMetrics
685
706
 
686
707
  MetricList.member = Shapes::ShapeRef.new(shape: Metric)
687
708
 
709
+ MetricNameList.member = Shapes::ShapeRef.new(shape: MetricName)
710
+
688
711
  MetricSetSummary.add_member(:metric_set_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "MetricSetArn"))
689
712
  MetricSetSummary.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AnomalyDetectorArn"))
690
713
  MetricSetSummary.add_member(:metric_set_description, Shapes::ShapeRef.new(shape: MetricSetDescription, location_name: "MetricSetDescription"))
@@ -814,6 +837,16 @@ module Aws::LookoutMetrics
814
837
 
815
838
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
816
839
 
840
+ UpdateAlertRequest.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AlertArn"))
841
+ UpdateAlertRequest.add_member(:alert_description, Shapes::ShapeRef.new(shape: AlertDescription, location_name: "AlertDescription"))
842
+ UpdateAlertRequest.add_member(:alert_sensitivity_threshold, Shapes::ShapeRef.new(shape: SensitivityThreshold, location_name: "AlertSensitivityThreshold"))
843
+ UpdateAlertRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
844
+ UpdateAlertRequest.add_member(:alert_filters, Shapes::ShapeRef.new(shape: AlertFilters, location_name: "AlertFilters"))
845
+ UpdateAlertRequest.struct_class = Types::UpdateAlertRequest
846
+
847
+ UpdateAlertResponse.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AlertArn"))
848
+ UpdateAlertResponse.struct_class = Types::UpdateAlertResponse
849
+
817
850
  UpdateAnomalyDetectorRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
818
851
  UpdateAnomalyDetectorRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
819
852
  UpdateAnomalyDetectorRequest.add_member(:anomaly_detector_description, Shapes::ShapeRef.new(shape: AnomalyDetectorDescription, location_name: "AnomalyDetectorDescription"))
@@ -1259,6 +1292,19 @@ module Aws::LookoutMetrics
1259
1292
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1260
1293
  end)
1261
1294
 
1295
+ api.add_operation(:update_alert, Seahorse::Model::Operation.new.tap do |o|
1296
+ o.name = "UpdateAlert"
1297
+ o.http_method = "POST"
1298
+ o.http_request_uri = "/UpdateAlert"
1299
+ o.input = Shapes::ShapeRef.new(shape: UpdateAlertRequest)
1300
+ o.output = Shapes::ShapeRef.new(shape: UpdateAlertResponse)
1301
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1302
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1303
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1304
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1305
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1306
+ end)
1307
+
1262
1308
  api.add_operation(:update_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1263
1309
  o.name = "UpdateAnomalyDetector"
1264
1310
  o.http_method = "POST"
@@ -123,6 +123,11 @@ module Aws::LookoutMetrics
123
123
  # The time at which the alert was created.
124
124
  # @return [Time]
125
125
  #
126
+ # @!attribute [rw] alert_filters
127
+ # The configuration of the alert filters, containing MetricList and
128
+ # DimensionFilter.
129
+ # @return [Types::AlertFilters]
130
+ #
126
131
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/Alert AWS API Documentation
127
132
  #
128
133
  class Alert < Struct.new(
@@ -135,7 +140,41 @@ module Aws::LookoutMetrics
135
140
  :alert_type,
136
141
  :alert_status,
137
142
  :last_modification_time,
138
- :creation_time)
143
+ :creation_time,
144
+ :alert_filters)
145
+ SENSITIVE = []
146
+ include Aws::Structure
147
+ end
148
+
149
+ # The configuration of the alert filters.
150
+ #
151
+ # @note When making an API call, you may pass AlertFilters
152
+ # data as a hash:
153
+ #
154
+ # {
155
+ # metric_list: ["MetricName"],
156
+ # dimension_filter_list: [
157
+ # {
158
+ # dimension_name: "ColumnName",
159
+ # dimension_value_list: ["DimensionValue"],
160
+ # },
161
+ # ],
162
+ # }
163
+ #
164
+ # @!attribute [rw] metric_list
165
+ # The list of measures that you want to get alerts for.
166
+ # @return [Array<String>]
167
+ #
168
+ # @!attribute [rw] dimension_filter_list
169
+ # The list of DimensionFilter objects that are used for
170
+ # dimension-based filtering.
171
+ # @return [Array<Types::DimensionFilter>]
172
+ #
173
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/AlertFilters AWS API Documentation
174
+ #
175
+ class AlertFilters < Struct.new(
176
+ :metric_list,
177
+ :dimension_filter_list)
139
178
  SENSITIVE = []
140
179
  include Aws::Structure
141
180
  end
@@ -732,7 +771,7 @@ module Aws::LookoutMetrics
732
771
  #
733
772
  # {
734
773
  # alert_name: "AlertName", # required
735
- # alert_sensitivity_threshold: 1, # required
774
+ # alert_sensitivity_threshold: 1,
736
775
  # alert_description: "AlertDescription",
737
776
  # anomaly_detector_arn: "Arn", # required
738
777
  # action: { # required
@@ -749,6 +788,15 @@ module Aws::LookoutMetrics
749
788
  # tags: {
750
789
  # "TagKey" => "TagValue",
751
790
  # },
791
+ # alert_filters: {
792
+ # metric_list: ["MetricName"],
793
+ # dimension_filter_list: [
794
+ # {
795
+ # dimension_name: "ColumnName",
796
+ # dimension_value_list: ["DimensionValue"],
797
+ # },
798
+ # ],
799
+ # },
752
800
  # }
753
801
  #
754
802
  # @!attribute [rw] alert_name
@@ -779,6 +827,11 @@ module Aws::LookoutMetrics
779
827
  # [1]: https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
780
828
  # @return [Hash<String,String>]
781
829
  #
830
+ # @!attribute [rw] alert_filters
831
+ # The configuration of the alert filters, containing MetricList and
832
+ # DimensionFilterList.
833
+ # @return [Types::AlertFilters]
834
+ #
782
835
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAlertRequest AWS API Documentation
783
836
  #
784
837
  class CreateAlertRequest < Struct.new(
@@ -787,7 +840,8 @@ module Aws::LookoutMetrics
787
840
  :alert_description,
788
841
  :anomaly_detector_arn,
789
842
  :action,
790
- :tags)
843
+ :tags,
844
+ :alert_filters)
791
845
  SENSITIVE = []
792
846
  include Aws::Structure
793
847
  end
@@ -1636,6 +1690,34 @@ module Aws::LookoutMetrics
1636
1690
  include Aws::Structure
1637
1691
  end
1638
1692
 
1693
+ # The dimension filter, containing DimensionName and DimensionValueList.
1694
+ #
1695
+ # @note When making an API call, you may pass DimensionFilter
1696
+ # data as a hash:
1697
+ #
1698
+ # {
1699
+ # dimension_name: "ColumnName",
1700
+ # dimension_value_list: ["DimensionValue"],
1701
+ # }
1702
+ #
1703
+ # @!attribute [rw] dimension_name
1704
+ # The name of the dimension to filter on.
1705
+ # @return [String]
1706
+ #
1707
+ # @!attribute [rw] dimension_value_list
1708
+ # The list of values for the dimension specified in DimensionName that
1709
+ # you want to filter on.
1710
+ # @return [Array<String>]
1711
+ #
1712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DimensionFilter AWS API Documentation
1713
+ #
1714
+ class DimensionFilter < Struct.new(
1715
+ :dimension_name,
1716
+ :dimension_value_list)
1717
+ SENSITIVE = []
1718
+ include Aws::Structure
1719
+ end
1720
+
1639
1721
  # A dimension name and value.
1640
1722
  #
1641
1723
  # @!attribute [rw] dimension_name
@@ -2877,6 +2959,16 @@ module Aws::LookoutMetrics
2877
2959
  #
2878
2960
  # @!attribute [rw] sns_format
2879
2961
  # The format of the SNS topic.
2962
+ #
2963
+ # * `JSON` – Send JSON alerts with an anomaly ID and a link to the
2964
+ # anomaly detail page. This is the default.
2965
+ #
2966
+ # * `LONG_TEXT` – Send human-readable alerts with information about
2967
+ # the impacted timeseries and a link to the anomaly detail page. We
2968
+ # recommend this for email.
2969
+ #
2970
+ # * `SHORT_TEXT` – Send human-readable alerts with a link to the
2971
+ # anomaly detail page. We recommend this for SMS.
2880
2972
  # @return [String]
2881
2973
  #
2882
2974
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/SNSConfiguration AWS API Documentation
@@ -3123,6 +3215,80 @@ module Aws::LookoutMetrics
3123
3215
  #
3124
3216
  class UntagResourceResponse < Aws::EmptyStructure; end
3125
3217
 
3218
+ # @note When making an API call, you may pass UpdateAlertRequest
3219
+ # data as a hash:
3220
+ #
3221
+ # {
3222
+ # alert_arn: "Arn", # required
3223
+ # alert_description: "AlertDescription",
3224
+ # alert_sensitivity_threshold: 1,
3225
+ # action: {
3226
+ # sns_configuration: {
3227
+ # role_arn: "Arn", # required
3228
+ # sns_topic_arn: "Arn", # required
3229
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
3230
+ # },
3231
+ # lambda_configuration: {
3232
+ # role_arn: "Arn", # required
3233
+ # lambda_arn: "Arn", # required
3234
+ # },
3235
+ # },
3236
+ # alert_filters: {
3237
+ # metric_list: ["MetricName"],
3238
+ # dimension_filter_list: [
3239
+ # {
3240
+ # dimension_name: "ColumnName",
3241
+ # dimension_value_list: ["DimensionValue"],
3242
+ # },
3243
+ # ],
3244
+ # },
3245
+ # }
3246
+ #
3247
+ # @!attribute [rw] alert_arn
3248
+ # The ARN of the alert to update.
3249
+ # @return [String]
3250
+ #
3251
+ # @!attribute [rw] alert_description
3252
+ # A description of the alert.
3253
+ # @return [String]
3254
+ #
3255
+ # @!attribute [rw] alert_sensitivity_threshold
3256
+ # An integer from 0 to 100 specifying the alert sensitivity threshold.
3257
+ # @return [Integer]
3258
+ #
3259
+ # @!attribute [rw] action
3260
+ # Action that will be triggered when there is an alert.
3261
+ # @return [Types::Action]
3262
+ #
3263
+ # @!attribute [rw] alert_filters
3264
+ # The configuration of the alert filters, containing MetricList and
3265
+ # DimensionFilterList.
3266
+ # @return [Types::AlertFilters]
3267
+ #
3268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAlertRequest AWS API Documentation
3269
+ #
3270
+ class UpdateAlertRequest < Struct.new(
3271
+ :alert_arn,
3272
+ :alert_description,
3273
+ :alert_sensitivity_threshold,
3274
+ :action,
3275
+ :alert_filters)
3276
+ SENSITIVE = []
3277
+ include Aws::Structure
3278
+ end
3279
+
3280
+ # @!attribute [rw] alert_arn
3281
+ # The ARN of the updated alert.
3282
+ # @return [String]
3283
+ #
3284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAlertResponse AWS API Documentation
3285
+ #
3286
+ class UpdateAlertResponse < Struct.new(
3287
+ :alert_arn)
3288
+ SENSITIVE = []
3289
+ include Aws::Structure
3290
+ end
3291
+
3126
3292
  # @note When making an API call, you may pass UpdateAnomalyDetectorRequest
3127
3293
  # data as a hash:
3128
3294
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lookoutmetrics/customizations'
48
48
  # @!group service
49
49
  module Aws::LookoutMetrics
50
50
 
51
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.20.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lookoutmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.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: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core