aws-sdk-lookoutmetrics 1.17.0 → 1.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76535fbfb5f945c619f7001a1a6709a632b118d70017c0efe3a9badc098ea893
4
- data.tar.gz: c73dedc572b8fc463493f9e928d5ef803afefee5445d4e4862d4764a3323390b
3
+ metadata.gz: d0e847bae531bbd51387eb71c4a7ae26fdb4befa7a1b4fdffdb4911920078ebe
4
+ data.tar.gz: 49714e69e68140e2356c942fc8f9e66d8ea0c24a95a30a59a3c6a2361fe75d14
5
5
  SHA512:
6
- metadata.gz: 030c68894b5bb5d28d77d5dd331361bef512f59037b58e2550981b71fc0f8be2d48f681db93254a3c8cad8f10e959145c6b8c55fb70d0a180ecabfc774e274dc
7
- data.tar.gz: 07a6741ebf403f298c1824b2cf7bd5d8dfcfecc48198c7d0e7c12c035548ec136c81bb023000710a4d875e7316a32ebc5219bc0d6dca574a95981e7984db92c1
6
+ metadata.gz: 8b19490fdd6be300c33e8468b490d915713374de06b70ca1f12aa429731864f6d40cfa840ae7ea05f75a17bdb0f523ad8bc1d6be62bfe38311e0e310c238d562
7
+ data.tar.gz: 7bb59da3333c5528f161ffc56b9555d862cfe1ab27bdbf9cb293e58f01566f2b4a3e50edb1d589aa34bce98241994b49f6c0e06a3e3858e6c3821fa7a732a2ed
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
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
+
9
+ 1.19.0 (2022-05-31)
10
+ ------------------
11
+
12
+ * Feature - Adding backtest mode to detectors using the Cloudwatch data source.
13
+
14
+ 1.18.0 (2022-05-25)
15
+ ------------------
16
+
17
+ * Feature - Adding AthenaSourceConfig for MetricSet APIs to support Athena as a data source.
18
+
4
19
  1.17.0 (2022-05-19)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.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
@@ -604,6 +617,9 @@ module Aws::LookoutMetrics
604
617
  # },
605
618
  # cloud_watch_config: {
606
619
  # role_arn: "Arn",
620
+ # back_test_configuration: {
621
+ # run_back_test_mode: false, # required
622
+ # },
607
623
  # },
608
624
  # rds_source_config: {
609
625
  # db_instance_identifier: "RDSDatabaseIdentifier",
@@ -631,6 +647,17 @@ module Aws::LookoutMetrics
631
647
  # security_group_id_list: ["SecurityGroupId"], # required
632
648
  # },
633
649
  # },
650
+ # athena_source_config: {
651
+ # role_arn: "Arn",
652
+ # database_name: "AthenaDatabaseName",
653
+ # data_catalog: "AthenaDataCatalog",
654
+ # table_name: "AthenaTableName",
655
+ # work_group_name: "AthenaWorkGroupName",
656
+ # s3_results_path: "AthenaS3ResultsPath",
657
+ # back_test_configuration: {
658
+ # run_back_test_mode: false, # required
659
+ # },
660
+ # },
634
661
  # },
635
662
  # timezone: "Timezone",
636
663
  # tags: {
@@ -755,6 +782,12 @@ module Aws::LookoutMetrics
755
782
  # resp.alert.alert_status #=> String, one of "ACTIVE", "INACTIVE"
756
783
  # resp.alert.last_modification_time #=> Time
757
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
758
791
  #
759
792
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAlert AWS API Documentation
760
793
  #
@@ -933,6 +966,7 @@ module Aws::LookoutMetrics
933
966
  # resp.metric_source.app_flow_config.role_arn #=> String
934
967
  # resp.metric_source.app_flow_config.flow_name #=> String
935
968
  # resp.metric_source.cloud_watch_config.role_arn #=> String
969
+ # resp.metric_source.cloud_watch_config.back_test_configuration.run_back_test_mode #=> Boolean
936
970
  # resp.metric_source.rds_source_config.db_instance_identifier #=> String
937
971
  # resp.metric_source.rds_source_config.database_host #=> String
938
972
  # resp.metric_source.rds_source_config.database_port #=> Integer
@@ -955,6 +989,13 @@ module Aws::LookoutMetrics
955
989
  # resp.metric_source.redshift_source_config.vpc_configuration.subnet_id_list[0] #=> String
956
990
  # resp.metric_source.redshift_source_config.vpc_configuration.security_group_id_list #=> Array
957
991
  # resp.metric_source.redshift_source_config.vpc_configuration.security_group_id_list[0] #=> String
992
+ # resp.metric_source.athena_source_config.role_arn #=> String
993
+ # resp.metric_source.athena_source_config.database_name #=> String
994
+ # resp.metric_source.athena_source_config.data_catalog #=> String
995
+ # resp.metric_source.athena_source_config.table_name #=> String
996
+ # resp.metric_source.athena_source_config.work_group_name #=> String
997
+ # resp.metric_source.athena_source_config.s3_results_path #=> String
998
+ # resp.metric_source.athena_source_config.back_test_configuration.run_back_test_mode #=> Boolean
958
999
  #
959
1000
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeMetricSet AWS API Documentation
960
1001
  #
@@ -1639,6 +1680,69 @@ module Aws::LookoutMetrics
1639
1680
  req.send_request(options)
1640
1681
  end
1641
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
+
1642
1746
  # Updates a detector. After activation, you can only change a
1643
1747
  # detector's ingestion delay and description.
1644
1748
  #
@@ -1709,7 +1813,7 @@ module Aws::LookoutMetrics
1709
1813
  # The dataset's interval.
1710
1814
  #
1711
1815
  # @option params [Types::MetricSource] :metric_source
1712
- # Contains information about source data used to generate a metric.
1816
+ # Contains information about source data used to generate metrics.
1713
1817
  #
1714
1818
  # @return [Types::UpdateMetricSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1715
1819
  #
@@ -1760,6 +1864,9 @@ module Aws::LookoutMetrics
1760
1864
  # },
1761
1865
  # cloud_watch_config: {
1762
1866
  # role_arn: "Arn",
1867
+ # back_test_configuration: {
1868
+ # run_back_test_mode: false, # required
1869
+ # },
1763
1870
  # },
1764
1871
  # rds_source_config: {
1765
1872
  # db_instance_identifier: "RDSDatabaseIdentifier",
@@ -1787,6 +1894,17 @@ module Aws::LookoutMetrics
1787
1894
  # security_group_id_list: ["SecurityGroupId"], # required
1788
1895
  # },
1789
1896
  # },
1897
+ # athena_source_config: {
1898
+ # role_arn: "Arn",
1899
+ # database_name: "AthenaDatabaseName",
1900
+ # data_catalog: "AthenaDataCatalog",
1901
+ # table_name: "AthenaTableName",
1902
+ # work_group_name: "AthenaWorkGroupName",
1903
+ # s3_results_path: "AthenaS3ResultsPath",
1904
+ # back_test_configuration: {
1905
+ # run_back_test_mode: false, # required
1906
+ # },
1907
+ # },
1790
1908
  # },
1791
1909
  # })
1792
1910
  #
@@ -1816,7 +1934,7 @@ module Aws::LookoutMetrics
1816
1934
  params: params,
1817
1935
  config: config)
1818
1936
  context[:gem_name] = 'aws-sdk-lookoutmetrics'
1819
- context[:gem_version] = '1.17.0'
1937
+ context[:gem_version] = '1.20.0'
1820
1938
  Seahorse::Client::Request.new(handlers, context)
1821
1939
  end
1822
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')
@@ -43,11 +44,18 @@ module Aws::LookoutMetrics
43
44
  AnomalyGroupTimeSeriesFeedback = Shapes::StructureShape.new(name: 'AnomalyGroupTimeSeriesFeedback')
44
45
  AppFlowConfig = Shapes::StructureShape.new(name: 'AppFlowConfig')
45
46
  Arn = Shapes::StringShape.new(name: 'Arn')
47
+ AthenaDataCatalog = Shapes::StringShape.new(name: 'AthenaDataCatalog')
48
+ AthenaDatabaseName = Shapes::StringShape.new(name: 'AthenaDatabaseName')
49
+ AthenaS3ResultsPath = Shapes::StringShape.new(name: 'AthenaS3ResultsPath')
50
+ AthenaSourceConfig = Shapes::StructureShape.new(name: 'AthenaSourceConfig')
51
+ AthenaTableName = Shapes::StringShape.new(name: 'AthenaTableName')
52
+ AthenaWorkGroupName = Shapes::StringShape.new(name: 'AthenaWorkGroupName')
46
53
  AttributeValue = Shapes::StructureShape.new(name: 'AttributeValue')
47
54
  AutoDetectionMetricSource = Shapes::StructureShape.new(name: 'AutoDetectionMetricSource')
48
55
  AutoDetectionS3SourceConfig = Shapes::StructureShape.new(name: 'AutoDetectionS3SourceConfig')
49
56
  BackTestAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'BackTestAnomalyDetectorRequest')
50
57
  BackTestAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'BackTestAnomalyDetectorResponse')
58
+ BackTestConfiguration = Shapes::StructureShape.new(name: 'BackTestConfiguration')
51
59
  BinaryAttributeValue = Shapes::StringShape.new(name: 'BinaryAttributeValue')
52
60
  BinaryListAttributeValue = Shapes::ListShape.new(name: 'BinaryListAttributeValue')
53
61
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
@@ -95,12 +103,15 @@ module Aws::LookoutMetrics
95
103
  DetectedS3SourceConfig = Shapes::StructureShape.new(name: 'DetectedS3SourceConfig')
96
104
  DimensionContribution = Shapes::StructureShape.new(name: 'DimensionContribution')
97
105
  DimensionContributionList = Shapes::ListShape.new(name: 'DimensionContributionList')
106
+ DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
107
+ DimensionFilterList = Shapes::ListShape.new(name: 'DimensionFilterList')
98
108
  DimensionList = Shapes::ListShape.new(name: 'DimensionList')
99
109
  DimensionNameValue = Shapes::StructureShape.new(name: 'DimensionNameValue')
100
110
  DimensionNameValueList = Shapes::ListShape.new(name: 'DimensionNameValueList')
101
111
  DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
102
112
  DimensionValueContribution = Shapes::StructureShape.new(name: 'DimensionValueContribution')
103
113
  DimensionValueContributionList = Shapes::ListShape.new(name: 'DimensionValueContributionList')
114
+ DimensionValueList = Shapes::ListShape.new(name: 'DimensionValueList')
104
115
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
105
116
  ExecutionList = Shapes::ListShape.new(name: 'ExecutionList')
106
117
  ExecutionStatus = Shapes::StructureShape.new(name: 'ExecutionStatus')
@@ -151,6 +162,7 @@ module Aws::LookoutMetrics
151
162
  MetricLevelImpactList = Shapes::ListShape.new(name: 'MetricLevelImpactList')
152
163
  MetricList = Shapes::ListShape.new(name: 'MetricList')
153
164
  MetricName = Shapes::StringShape.new(name: 'MetricName')
165
+ MetricNameList = Shapes::ListShape.new(name: 'MetricNameList')
154
166
  MetricSetDescription = Shapes::StringShape.new(name: 'MetricSetDescription')
155
167
  MetricSetName = Shapes::StringShape.new(name: 'MetricSetName')
156
168
  MetricSetSummary = Shapes::StructureShape.new(name: 'MetricSetSummary')
@@ -217,6 +229,8 @@ module Aws::LookoutMetrics
217
229
  UUID = Shapes::StringShape.new(name: 'UUID')
218
230
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
219
231
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
232
+ UpdateAlertRequest = Shapes::StructureShape.new(name: 'UpdateAlertRequest')
233
+ UpdateAlertResponse = Shapes::StructureShape.new(name: 'UpdateAlertResponse')
220
234
  UpdateAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'UpdateAnomalyDetectorRequest')
221
235
  UpdateAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'UpdateAnomalyDetectorResponse')
222
236
  UpdateMetricSetRequest = Shapes::StructureShape.new(name: 'UpdateMetricSetRequest')
@@ -249,8 +263,13 @@ module Aws::LookoutMetrics
249
263
  Alert.add_member(:alert_status, Shapes::ShapeRef.new(shape: AlertStatus, location_name: "AlertStatus"))
250
264
  Alert.add_member(:last_modification_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModificationTime"))
251
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"))
252
267
  Alert.struct_class = Types::Alert
253
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
+
254
273
  AlertSummary.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AlertArn"))
255
274
  AlertSummary.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AnomalyDetectorArn"))
256
275
  AlertSummary.add_member(:alert_name, Shapes::ShapeRef.new(shape: AlertName, location_name: "AlertName"))
@@ -316,6 +335,15 @@ module Aws::LookoutMetrics
316
335
  AppFlowConfig.add_member(:flow_name, Shapes::ShapeRef.new(shape: FlowName, location_name: "FlowName"))
317
336
  AppFlowConfig.struct_class = Types::AppFlowConfig
318
337
 
338
+ AthenaSourceConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoleArn"))
339
+ AthenaSourceConfig.add_member(:database_name, Shapes::ShapeRef.new(shape: AthenaDatabaseName, location_name: "DatabaseName"))
340
+ AthenaSourceConfig.add_member(:data_catalog, Shapes::ShapeRef.new(shape: AthenaDataCatalog, location_name: "DataCatalog"))
341
+ AthenaSourceConfig.add_member(:table_name, Shapes::ShapeRef.new(shape: AthenaTableName, location_name: "TableName"))
342
+ AthenaSourceConfig.add_member(:work_group_name, Shapes::ShapeRef.new(shape: AthenaWorkGroupName, location_name: "WorkGroupName"))
343
+ AthenaSourceConfig.add_member(:s3_results_path, Shapes::ShapeRef.new(shape: AthenaS3ResultsPath, location_name: "S3ResultsPath"))
344
+ AthenaSourceConfig.add_member(:back_test_configuration, Shapes::ShapeRef.new(shape: BackTestConfiguration, location_name: "BackTestConfiguration"))
345
+ AthenaSourceConfig.struct_class = Types::AthenaSourceConfig
346
+
319
347
  AttributeValue.add_member(:s, Shapes::ShapeRef.new(shape: StringAttributeValue, location_name: "S"))
320
348
  AttributeValue.add_member(:n, Shapes::ShapeRef.new(shape: NumberAttributeValue, location_name: "N"))
321
349
  AttributeValue.add_member(:b, Shapes::ShapeRef.new(shape: BinaryAttributeValue, location_name: "B"))
@@ -336,9 +364,13 @@ module Aws::LookoutMetrics
336
364
 
337
365
  BackTestAnomalyDetectorResponse.struct_class = Types::BackTestAnomalyDetectorResponse
338
366
 
367
+ BackTestConfiguration.add_member(:run_back_test_mode, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "RunBackTestMode"))
368
+ BackTestConfiguration.struct_class = Types::BackTestConfiguration
369
+
339
370
  BinaryListAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
340
371
 
341
372
  CloudWatchConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoleArn"))
373
+ CloudWatchConfig.add_member(:back_test_configuration, Shapes::ShapeRef.new(shape: BackTestConfiguration, location_name: "BackTestConfiguration"))
342
374
  CloudWatchConfig.struct_class = Types::CloudWatchConfig
343
375
 
344
376
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
@@ -350,11 +382,12 @@ module Aws::LookoutMetrics
350
382
  ContributionMatrix.struct_class = Types::ContributionMatrix
351
383
 
352
384
  CreateAlertRequest.add_member(:alert_name, Shapes::ShapeRef.new(shape: AlertName, required: true, location_name: "AlertName"))
353
- 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"))
354
386
  CreateAlertRequest.add_member(:alert_description, Shapes::ShapeRef.new(shape: AlertDescription, location_name: "AlertDescription"))
355
387
  CreateAlertRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
356
388
  CreateAlertRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
357
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"))
358
391
  CreateAlertRequest.struct_class = Types::CreateAlertRequest
359
392
 
360
393
  CreateAlertResponse.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AlertArn"))
@@ -503,6 +536,12 @@ module Aws::LookoutMetrics
503
536
 
504
537
  DimensionContributionList.member = Shapes::ShapeRef.new(shape: DimensionContribution)
505
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
+
506
545
  DimensionList.member = Shapes::ShapeRef.new(shape: ColumnName)
507
546
 
508
547
  DimensionNameValue.add_member(:dimension_name, Shapes::ShapeRef.new(shape: ColumnName, required: true, location_name: "DimensionName"))
@@ -517,6 +556,8 @@ module Aws::LookoutMetrics
517
556
 
518
557
  DimensionValueContributionList.member = Shapes::ShapeRef.new(shape: DimensionValueContribution)
519
558
 
559
+ DimensionValueList.member = Shapes::ShapeRef.new(shape: DimensionValue)
560
+
520
561
  ExecutionList.member = Shapes::ShapeRef.new(shape: ExecutionStatus)
521
562
 
522
563
  ExecutionStatus.add_member(:timestamp, Shapes::ShapeRef.new(shape: TimestampString, location_name: "Timestamp"))
@@ -665,6 +706,8 @@ module Aws::LookoutMetrics
665
706
 
666
707
  MetricList.member = Shapes::ShapeRef.new(shape: Metric)
667
708
 
709
+ MetricNameList.member = Shapes::ShapeRef.new(shape: MetricName)
710
+
668
711
  MetricSetSummary.add_member(:metric_set_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "MetricSetArn"))
669
712
  MetricSetSummary.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AnomalyDetectorArn"))
670
713
  MetricSetSummary.add_member(:metric_set_description, Shapes::ShapeRef.new(shape: MetricSetDescription, location_name: "MetricSetDescription"))
@@ -681,6 +724,7 @@ module Aws::LookoutMetrics
681
724
  MetricSource.add_member(:cloud_watch_config, Shapes::ShapeRef.new(shape: CloudWatchConfig, location_name: "CloudWatchConfig"))
682
725
  MetricSource.add_member(:rds_source_config, Shapes::ShapeRef.new(shape: RDSSourceConfig, location_name: "RDSSourceConfig"))
683
726
  MetricSource.add_member(:redshift_source_config, Shapes::ShapeRef.new(shape: RedshiftSourceConfig, location_name: "RedshiftSourceConfig"))
727
+ MetricSource.add_member(:athena_source_config, Shapes::ShapeRef.new(shape: AthenaSourceConfig, location_name: "AthenaSourceConfig"))
684
728
  MetricSource.struct_class = Types::MetricSource
685
729
 
686
730
  MetricValueList.member = Shapes::ShapeRef.new(shape: MetricValue)
@@ -793,6 +837,16 @@ module Aws::LookoutMetrics
793
837
 
794
838
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
795
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
+
796
850
  UpdateAnomalyDetectorRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
797
851
  UpdateAnomalyDetectorRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
798
852
  UpdateAnomalyDetectorRequest.add_member(:anomaly_detector_description, Shapes::ShapeRef.new(shape: AnomalyDetectorDescription, location_name: "AnomalyDetectorDescription"))
@@ -1238,6 +1292,19 @@ module Aws::LookoutMetrics
1238
1292
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1239
1293
  end)
1240
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
+
1241
1308
  api.add_operation(:update_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
1242
1309
  o.name = "UpdateAnomalyDetector"
1243
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
@@ -466,6 +505,66 @@ module Aws::LookoutMetrics
466
505
  include Aws::Structure
467
506
  end
468
507
 
508
+ # Details about an Amazon Athena datasource.
509
+ #
510
+ # @note When making an API call, you may pass AthenaSourceConfig
511
+ # data as a hash:
512
+ #
513
+ # {
514
+ # role_arn: "Arn",
515
+ # database_name: "AthenaDatabaseName",
516
+ # data_catalog: "AthenaDataCatalog",
517
+ # table_name: "AthenaTableName",
518
+ # work_group_name: "AthenaWorkGroupName",
519
+ # s3_results_path: "AthenaS3ResultsPath",
520
+ # back_test_configuration: {
521
+ # run_back_test_mode: false, # required
522
+ # },
523
+ # }
524
+ #
525
+ # @!attribute [rw] role_arn
526
+ # An IAM role that gives Amazon Lookout for Metrics permission to
527
+ # access the data.
528
+ # @return [String]
529
+ #
530
+ # @!attribute [rw] database_name
531
+ # The database's name.
532
+ # @return [String]
533
+ #
534
+ # @!attribute [rw] data_catalog
535
+ # The database's data catalog.
536
+ # @return [String]
537
+ #
538
+ # @!attribute [rw] table_name
539
+ # The database's table name.
540
+ # @return [String]
541
+ #
542
+ # @!attribute [rw] work_group_name
543
+ # The database's work group name.
544
+ # @return [String]
545
+ #
546
+ # @!attribute [rw] s3_results_path
547
+ # The database's results path.
548
+ # @return [String]
549
+ #
550
+ # @!attribute [rw] back_test_configuration
551
+ # Settings for backtest mode.
552
+ # @return [Types::BackTestConfiguration]
553
+ #
554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/AthenaSourceConfig AWS API Documentation
555
+ #
556
+ class AthenaSourceConfig < Struct.new(
557
+ :role_arn,
558
+ :database_name,
559
+ :data_catalog,
560
+ :table_name,
561
+ :work_group_name,
562
+ :s3_results_path,
563
+ :back_test_configuration)
564
+ SENSITIVE = []
565
+ include Aws::Structure
566
+ end
567
+
469
568
  # An attribute value.
470
569
  #
471
570
  # @!attribute [rw] s
@@ -579,6 +678,27 @@ module Aws::LookoutMetrics
579
678
  #
580
679
  class BackTestAnomalyDetectorResponse < Aws::EmptyStructure; end
581
680
 
681
+ # Settings for backtest mode.
682
+ #
683
+ # @note When making an API call, you may pass BackTestConfiguration
684
+ # data as a hash:
685
+ #
686
+ # {
687
+ # run_back_test_mode: false, # required
688
+ # }
689
+ #
690
+ # @!attribute [rw] run_back_test_mode
691
+ # Run a backtest instead of monitoring new data.
692
+ # @return [Boolean]
693
+ #
694
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/BackTestConfiguration AWS API Documentation
695
+ #
696
+ class BackTestConfiguration < Struct.new(
697
+ :run_back_test_mode)
698
+ SENSITIVE = []
699
+ include Aws::Structure
700
+ end
701
+
582
702
  # Details about an Amazon CloudWatch datasource.
583
703
  #
584
704
  # @note When making an API call, you may pass CloudWatchConfig
@@ -586,6 +706,9 @@ module Aws::LookoutMetrics
586
706
  #
587
707
  # {
588
708
  # role_arn: "Arn",
709
+ # back_test_configuration: {
710
+ # run_back_test_mode: false, # required
711
+ # },
589
712
  # }
590
713
  #
591
714
  # @!attribute [rw] role_arn
@@ -593,10 +716,15 @@ module Aws::LookoutMetrics
593
716
  # access data in Amazon CloudWatch.
594
717
  # @return [String]
595
718
  #
719
+ # @!attribute [rw] back_test_configuration
720
+ # Settings for backtest mode.
721
+ # @return [Types::BackTestConfiguration]
722
+ #
596
723
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CloudWatchConfig AWS API Documentation
597
724
  #
598
725
  class CloudWatchConfig < Struct.new(
599
- :role_arn)
726
+ :role_arn,
727
+ :back_test_configuration)
600
728
  SENSITIVE = []
601
729
  include Aws::Structure
602
730
  end
@@ -643,7 +771,7 @@ module Aws::LookoutMetrics
643
771
  #
644
772
  # {
645
773
  # alert_name: "AlertName", # required
646
- # alert_sensitivity_threshold: 1, # required
774
+ # alert_sensitivity_threshold: 1,
647
775
  # alert_description: "AlertDescription",
648
776
  # anomaly_detector_arn: "Arn", # required
649
777
  # action: { # required
@@ -660,6 +788,15 @@ module Aws::LookoutMetrics
660
788
  # tags: {
661
789
  # "TagKey" => "TagValue",
662
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
+ # },
663
800
  # }
664
801
  #
665
802
  # @!attribute [rw] alert_name
@@ -690,6 +827,11 @@ module Aws::LookoutMetrics
690
827
  # [1]: https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
691
828
  # @return [Hash<String,String>]
692
829
  #
830
+ # @!attribute [rw] alert_filters
831
+ # The configuration of the alert filters, containing MetricList and
832
+ # DimensionFilterList.
833
+ # @return [Types::AlertFilters]
834
+ #
693
835
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAlertRequest AWS API Documentation
694
836
  #
695
837
  class CreateAlertRequest < Struct.new(
@@ -698,7 +840,8 @@ module Aws::LookoutMetrics
698
840
  :alert_description,
699
841
  :anomaly_detector_arn,
700
842
  :action,
701
- :tags)
843
+ :tags,
844
+ :alert_filters)
702
845
  SENSITIVE = []
703
846
  include Aws::Structure
704
847
  end
@@ -826,6 +969,9 @@ module Aws::LookoutMetrics
826
969
  # },
827
970
  # cloud_watch_config: {
828
971
  # role_arn: "Arn",
972
+ # back_test_configuration: {
973
+ # run_back_test_mode: false, # required
974
+ # },
829
975
  # },
830
976
  # rds_source_config: {
831
977
  # db_instance_identifier: "RDSDatabaseIdentifier",
@@ -853,6 +999,17 @@ module Aws::LookoutMetrics
853
999
  # security_group_id_list: ["SecurityGroupId"], # required
854
1000
  # },
855
1001
  # },
1002
+ # athena_source_config: {
1003
+ # role_arn: "Arn",
1004
+ # database_name: "AthenaDatabaseName",
1005
+ # data_catalog: "AthenaDataCatalog",
1006
+ # table_name: "AthenaTableName",
1007
+ # work_group_name: "AthenaWorkGroupName",
1008
+ # s3_results_path: "AthenaS3ResultsPath",
1009
+ # back_test_configuration: {
1010
+ # run_back_test_mode: false, # required
1011
+ # },
1012
+ # },
856
1013
  # },
857
1014
  # timezone: "Timezone",
858
1015
  # tags: {
@@ -1533,6 +1690,34 @@ module Aws::LookoutMetrics
1533
1690
  include Aws::Structure
1534
1691
  end
1535
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
+
1536
1721
  # A dimension name and value.
1537
1722
  #
1538
1723
  # @!attribute [rw] dimension_name
@@ -2392,7 +2577,7 @@ module Aws::LookoutMetrics
2392
2577
  include Aws::Structure
2393
2578
  end
2394
2579
 
2395
- # Contains information about source data used to generate a metric.
2580
+ # Contains information about source data used to generate metrics.
2396
2581
  #
2397
2582
  # @note When making an API call, you may pass MetricSource
2398
2583
  # data as a hash:
@@ -2423,6 +2608,9 @@ module Aws::LookoutMetrics
2423
2608
  # },
2424
2609
  # cloud_watch_config: {
2425
2610
  # role_arn: "Arn",
2611
+ # back_test_configuration: {
2612
+ # run_back_test_mode: false, # required
2613
+ # },
2426
2614
  # },
2427
2615
  # rds_source_config: {
2428
2616
  # db_instance_identifier: "RDSDatabaseIdentifier",
@@ -2450,6 +2638,17 @@ module Aws::LookoutMetrics
2450
2638
  # security_group_id_list: ["SecurityGroupId"], # required
2451
2639
  # },
2452
2640
  # },
2641
+ # athena_source_config: {
2642
+ # role_arn: "Arn",
2643
+ # database_name: "AthenaDatabaseName",
2644
+ # data_catalog: "AthenaDataCatalog",
2645
+ # table_name: "AthenaTableName",
2646
+ # work_group_name: "AthenaWorkGroupName",
2647
+ # s3_results_path: "AthenaS3ResultsPath",
2648
+ # back_test_configuration: {
2649
+ # run_back_test_mode: false, # required
2650
+ # },
2651
+ # },
2453
2652
  # }
2454
2653
  #
2455
2654
  # @!attribute [rw] s3_source_config
@@ -2458,24 +2657,26 @@ module Aws::LookoutMetrics
2458
2657
  # @return [Types::S3SourceConfig]
2459
2658
  #
2460
2659
  # @!attribute [rw] app_flow_config
2461
- # An object containing information about the AppFlow configuration.
2660
+ # Details about an AppFlow datasource.
2462
2661
  # @return [Types::AppFlowConfig]
2463
2662
  #
2464
2663
  # @!attribute [rw] cloud_watch_config
2465
- # An object containing information about the Amazon CloudWatch
2466
- # monitoring configuration.
2664
+ # Details about an Amazon CloudWatch monitoring datasource.
2467
2665
  # @return [Types::CloudWatchConfig]
2468
2666
  #
2469
2667
  # @!attribute [rw] rds_source_config
2470
- # An object containing information about the Amazon Relational
2471
- # Database Service (RDS) configuration.
2668
+ # Details about an Amazon Relational Database Service (RDS)
2669
+ # datasource.
2472
2670
  # @return [Types::RDSSourceConfig]
2473
2671
  #
2474
2672
  # @!attribute [rw] redshift_source_config
2475
- # An object containing information about the Amazon Redshift database
2476
- # configuration.
2673
+ # Details about an Amazon Redshift database datasource.
2477
2674
  # @return [Types::RedshiftSourceConfig]
2478
2675
  #
2676
+ # @!attribute [rw] athena_source_config
2677
+ # Details about an Amazon Athena datasource.
2678
+ # @return [Types::AthenaSourceConfig]
2679
+ #
2479
2680
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/MetricSource AWS API Documentation
2480
2681
  #
2481
2682
  class MetricSource < Struct.new(
@@ -2483,7 +2684,8 @@ module Aws::LookoutMetrics
2483
2684
  :app_flow_config,
2484
2685
  :cloud_watch_config,
2485
2686
  :rds_source_config,
2486
- :redshift_source_config)
2687
+ :redshift_source_config,
2688
+ :athena_source_config)
2487
2689
  SENSITIVE = []
2488
2690
  include Aws::Structure
2489
2691
  end
@@ -2756,7 +2958,17 @@ module Aws::LookoutMetrics
2756
2958
  # @return [String]
2757
2959
  #
2758
2960
  # @!attribute [rw] sns_format
2759
- # The text format for alerts.
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.
2760
2972
  # @return [String]
2761
2973
  #
2762
2974
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/SNSConfiguration AWS API Documentation
@@ -3003,6 +3215,80 @@ module Aws::LookoutMetrics
3003
3215
  #
3004
3216
  class UntagResourceResponse < Aws::EmptyStructure; end
3005
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
+
3006
3292
  # @note When making an API call, you may pass UpdateAnomalyDetectorRequest
3007
3293
  # data as a hash:
3008
3294
  #
@@ -3101,6 +3387,9 @@ module Aws::LookoutMetrics
3101
3387
  # },
3102
3388
  # cloud_watch_config: {
3103
3389
  # role_arn: "Arn",
3390
+ # back_test_configuration: {
3391
+ # run_back_test_mode: false, # required
3392
+ # },
3104
3393
  # },
3105
3394
  # rds_source_config: {
3106
3395
  # db_instance_identifier: "RDSDatabaseIdentifier",
@@ -3128,6 +3417,17 @@ module Aws::LookoutMetrics
3128
3417
  # security_group_id_list: ["SecurityGroupId"], # required
3129
3418
  # },
3130
3419
  # },
3420
+ # athena_source_config: {
3421
+ # role_arn: "Arn",
3422
+ # database_name: "AthenaDatabaseName",
3423
+ # data_catalog: "AthenaDataCatalog",
3424
+ # table_name: "AthenaTableName",
3425
+ # work_group_name: "AthenaWorkGroupName",
3426
+ # s3_results_path: "AthenaS3ResultsPath",
3427
+ # back_test_configuration: {
3428
+ # run_back_test_mode: false, # required
3429
+ # },
3430
+ # },
3131
3431
  # },
3132
3432
  # }
3133
3433
  #
@@ -3162,7 +3462,7 @@ module Aws::LookoutMetrics
3162
3462
  # @return [String]
3163
3463
  #
3164
3464
  # @!attribute [rw] metric_source
3165
- # Contains information about source data used to generate a metric.
3465
+ # Contains information about source data used to generate metrics.
3166
3466
  # @return [Types::MetricSource]
3167
3467
  #
3168
3468
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateMetricSetRequest AWS API Documentation
@@ -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.17.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.17.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-19 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