aws-sdk-lookoutmetrics 1.14.0 → 1.17.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: 628cd8f92fe765205f3cbfb91bd4c4f1fdaf493c12301d94b613680dc83ca98d
4
- data.tar.gz: 1667737a29ebe6acefb6751a97fe796e799f1361c3369c02b2ecb5ed3a51a036
3
+ metadata.gz: 76535fbfb5f945c619f7001a1a6709a632b118d70017c0efe3a9badc098ea893
4
+ data.tar.gz: c73dedc572b8fc463493f9e928d5ef803afefee5445d4e4862d4764a3323390b
5
5
  SHA512:
6
- metadata.gz: 75ef21503bfd32ea963a6b3ba0f63af0c99ebdb156e6bd45cf1cd4d2aadd9ab2d5b1542123e13ac09084eadc420c943cbe20d6a1324517c068cac373bd9f62ba
7
- data.tar.gz: 07d37b6ff42d89e4616ad00342207466a400f32d164dedeb725ac840aea83bdf07c86b22d521e1004b484d140021f5a3c904181faec27a58d2546cc69e501e7e
6
+ metadata.gz: 030c68894b5bb5d28d77d5dd331361bef512f59037b58e2550981b71fc0f8be2d48f681db93254a3c8cad8f10e959145c6b8c55fb70d0a180ecabfc774e274dc
7
+ data.tar.gz: 07a6741ebf403f298c1824b2cf7bd5d8dfcfecc48198c7d0e7c12c035548ec136c81bb023000710a4d875e7316a32ebc5219bc0d6dca574a95981e7984db92c1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2022-05-19)
5
+ ------------------
6
+
7
+ * Feature - In this release we added SnsFormat to SNSConfiguration to support human readable alert.
8
+
9
+ 1.16.0 (2022-04-21)
10
+ ------------------
11
+
12
+ * Feature - Added DetectMetricSetConfig API for detecting configuration required for creating metric set from provided S3 data source.
13
+
14
+ 1.15.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.14.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.17.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::LookoutMetrics
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -432,6 +434,7 @@ module Aws::LookoutMetrics
432
434
  # sns_configuration: {
433
435
  # role_arn: "Arn", # required
434
436
  # sns_topic_arn: "Arn", # required
437
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
435
438
  # },
436
439
  # lambda_configuration: {
437
440
  # role_arn: "Arn", # required
@@ -740,6 +743,7 @@ module Aws::LookoutMetrics
740
743
  #
741
744
  # resp.alert.action.sns_configuration.role_arn #=> String
742
745
  # resp.alert.action.sns_configuration.sns_topic_arn #=> String
746
+ # resp.alert.action.sns_configuration.sns_format #=> String, one of "LONG_TEXT", "SHORT_TEXT", "JSON"
743
747
  # resp.alert.action.lambda_configuration.role_arn #=> String
744
748
  # resp.alert.action.lambda_configuration.lambda_arn #=> String
745
749
  # resp.alert.alert_description #=> String
@@ -961,6 +965,72 @@ module Aws::LookoutMetrics
961
965
  req.send_request(options)
962
966
  end
963
967
 
968
+ # Detects an Amazon S3 dataset's file format, interval, and offset.
969
+ #
970
+ # @option params [required, String] :anomaly_detector_arn
971
+ # An anomaly detector ARN.
972
+ #
973
+ # @option params [required, Types::AutoDetectionMetricSource] :auto_detection_metric_source
974
+ # A data source.
975
+ #
976
+ # @return [Types::DetectMetricSetConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
977
+ #
978
+ # * {Types::DetectMetricSetConfigResponse#detected_metric_set_config #detected_metric_set_config} => Types::DetectedMetricSetConfig
979
+ #
980
+ # @example Request syntax with placeholder values
981
+ #
982
+ # resp = client.detect_metric_set_config({
983
+ # anomaly_detector_arn: "Arn", # required
984
+ # auto_detection_metric_source: { # required
985
+ # s3_source_config: {
986
+ # templated_path_list: ["TemplatedPath"],
987
+ # historical_data_path_list: ["HistoricalDataPath"],
988
+ # },
989
+ # },
990
+ # })
991
+ #
992
+ # @example Response structure
993
+ #
994
+ # resp.detected_metric_set_config.offset.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
995
+ # resp.detected_metric_set_config.offset.confidence #=> String, one of "HIGH", "LOW", "NONE"
996
+ # resp.detected_metric_set_config.offset.message #=> String
997
+ # resp.detected_metric_set_config.metric_set_frequency.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
998
+ # resp.detected_metric_set_config.metric_set_frequency.confidence #=> String, one of "HIGH", "LOW", "NONE"
999
+ # resp.detected_metric_set_config.metric_set_frequency.message #=> String
1000
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.file_compression.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1001
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.file_compression.confidence #=> String, one of "HIGH", "LOW", "NONE"
1002
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.file_compression.message #=> String
1003
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.charset.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1004
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.charset.confidence #=> String, one of "HIGH", "LOW", "NONE"
1005
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.charset.message #=> String
1006
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.contains_header.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1007
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.contains_header.confidence #=> String, one of "HIGH", "LOW", "NONE"
1008
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.contains_header.message #=> String
1009
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.delimiter.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1010
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.delimiter.confidence #=> String, one of "HIGH", "LOW", "NONE"
1011
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.delimiter.message #=> String
1012
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.header_list.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1013
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.header_list.confidence #=> String, one of "HIGH", "LOW", "NONE"
1014
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.header_list.message #=> String
1015
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.quote_symbol.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1016
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.quote_symbol.confidence #=> String, one of "HIGH", "LOW", "NONE"
1017
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.csv_format_descriptor.quote_symbol.message #=> String
1018
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.file_compression.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1019
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.file_compression.confidence #=> String, one of "HIGH", "LOW", "NONE"
1020
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.file_compression.message #=> String
1021
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.charset.value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1022
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.charset.confidence #=> String, one of "HIGH", "LOW", "NONE"
1023
+ # resp.detected_metric_set_config.metric_source.s3_source_config.file_format_descriptor.json_format_descriptor.charset.message #=> String
1024
+ #
1025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectMetricSetConfig AWS API Documentation
1026
+ #
1027
+ # @overload detect_metric_set_config(params = {})
1028
+ # @param [Hash] params ({})
1029
+ def detect_metric_set_config(params = {}, options = {})
1030
+ req = build_request(:detect_metric_set_config, params)
1031
+ req.send_request(options)
1032
+ end
1033
+
964
1034
  # Returns details about a group of anomalous metrics.
965
1035
  #
966
1036
  # @option params [required, String] :anomaly_group_id
@@ -1746,7 +1816,7 @@ module Aws::LookoutMetrics
1746
1816
  params: params,
1747
1817
  config: config)
1748
1818
  context[:gem_name] = 'aws-sdk-lookoutmetrics'
1749
- context[:gem_version] = '1.14.0'
1819
+ context[:gem_version] = '1.17.0'
1750
1820
  Seahorse::Client::Request.new(handlers, context)
1751
1821
  end
1752
1822
 
@@ -43,13 +43,19 @@ module Aws::LookoutMetrics
43
43
  AnomalyGroupTimeSeriesFeedback = Shapes::StructureShape.new(name: 'AnomalyGroupTimeSeriesFeedback')
44
44
  AppFlowConfig = Shapes::StructureShape.new(name: 'AppFlowConfig')
45
45
  Arn = Shapes::StringShape.new(name: 'Arn')
46
+ AttributeValue = Shapes::StructureShape.new(name: 'AttributeValue')
47
+ AutoDetectionMetricSource = Shapes::StructureShape.new(name: 'AutoDetectionMetricSource')
48
+ AutoDetectionS3SourceConfig = Shapes::StructureShape.new(name: 'AutoDetectionS3SourceConfig')
46
49
  BackTestAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'BackTestAnomalyDetectorRequest')
47
50
  BackTestAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'BackTestAnomalyDetectorResponse')
51
+ BinaryAttributeValue = Shapes::StringShape.new(name: 'BinaryAttributeValue')
52
+ BinaryListAttributeValue = Shapes::ListShape.new(name: 'BinaryListAttributeValue')
48
53
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
49
54
  CSVFileCompression = Shapes::StringShape.new(name: 'CSVFileCompression')
50
55
  Charset = Shapes::StringShape.new(name: 'Charset')
51
56
  CloudWatchConfig = Shapes::StructureShape.new(name: 'CloudWatchConfig')
52
57
  ColumnName = Shapes::StringShape.new(name: 'ColumnName')
58
+ Confidence = Shapes::StringShape.new(name: 'Confidence')
53
59
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
54
60
  ContributionMatrix = Shapes::StructureShape.new(name: 'ContributionMatrix')
55
61
  CreateAlertRequest = Shapes::StructureShape.new(name: 'CreateAlertRequest')
@@ -78,6 +84,15 @@ module Aws::LookoutMetrics
78
84
  DescribeAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'DescribeAnomalyDetectorResponse')
79
85
  DescribeMetricSetRequest = Shapes::StructureShape.new(name: 'DescribeMetricSetRequest')
80
86
  DescribeMetricSetResponse = Shapes::StructureShape.new(name: 'DescribeMetricSetResponse')
87
+ DetectMetricSetConfigRequest = Shapes::StructureShape.new(name: 'DetectMetricSetConfigRequest')
88
+ DetectMetricSetConfigResponse = Shapes::StructureShape.new(name: 'DetectMetricSetConfigResponse')
89
+ DetectedCsvFormatDescriptor = Shapes::StructureShape.new(name: 'DetectedCsvFormatDescriptor')
90
+ DetectedField = Shapes::StructureShape.new(name: 'DetectedField')
91
+ DetectedFileFormatDescriptor = Shapes::StructureShape.new(name: 'DetectedFileFormatDescriptor')
92
+ DetectedJsonFormatDescriptor = Shapes::StructureShape.new(name: 'DetectedJsonFormatDescriptor')
93
+ DetectedMetricSetConfig = Shapes::StructureShape.new(name: 'DetectedMetricSetConfig')
94
+ DetectedMetricSource = Shapes::StructureShape.new(name: 'DetectedMetricSource')
95
+ DetectedS3SourceConfig = Shapes::StructureShape.new(name: 'DetectedS3SourceConfig')
81
96
  DimensionContribution = Shapes::StructureShape.new(name: 'DimensionContribution')
82
97
  DimensionContributionList = Shapes::ListShape.new(name: 'DimensionContributionList')
83
98
  DimensionList = Shapes::ListShape.new(name: 'DimensionList')
@@ -145,6 +160,8 @@ module Aws::LookoutMetrics
145
160
  MetricValueList = Shapes::ListShape.new(name: 'MetricValueList')
146
161
  Namespace = Shapes::StringShape.new(name: 'Namespace')
147
162
  NextToken = Shapes::StringShape.new(name: 'NextToken')
163
+ NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
164
+ NumberListAttributeValue = Shapes::ListShape.new(name: 'NumberListAttributeValue')
148
165
  Offset = Shapes::IntegerShape.new(name: 'Offset')
149
166
  PoirotSecretManagerArn = Shapes::StringShape.new(name: 'PoirotSecretManagerArn')
150
167
  PutFeedbackRequest = Shapes::StructureShape.new(name: 'PutFeedbackRequest')
@@ -172,6 +189,9 @@ module Aws::LookoutMetrics
172
189
  SensitivityThreshold = Shapes::IntegerShape.new(name: 'SensitivityThreshold')
173
190
  ServiceCode = Shapes::StringShape.new(name: 'ServiceCode')
174
191
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
192
+ SnsFormat = Shapes::StringShape.new(name: 'SnsFormat')
193
+ StringAttributeValue = Shapes::StringShape.new(name: 'StringAttributeValue')
194
+ StringListAttributeValue = Shapes::ListShape.new(name: 'StringListAttributeValue')
175
195
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
176
196
  SubnetIdList = Shapes::ListShape.new(name: 'SubnetIdList')
177
197
  TableName = Shapes::StringShape.new(name: 'TableName')
@@ -296,11 +316,28 @@ module Aws::LookoutMetrics
296
316
  AppFlowConfig.add_member(:flow_name, Shapes::ShapeRef.new(shape: FlowName, location_name: "FlowName"))
297
317
  AppFlowConfig.struct_class = Types::AppFlowConfig
298
318
 
319
+ AttributeValue.add_member(:s, Shapes::ShapeRef.new(shape: StringAttributeValue, location_name: "S"))
320
+ AttributeValue.add_member(:n, Shapes::ShapeRef.new(shape: NumberAttributeValue, location_name: "N"))
321
+ AttributeValue.add_member(:b, Shapes::ShapeRef.new(shape: BinaryAttributeValue, location_name: "B"))
322
+ AttributeValue.add_member(:ss, Shapes::ShapeRef.new(shape: StringListAttributeValue, location_name: "SS"))
323
+ AttributeValue.add_member(:ns, Shapes::ShapeRef.new(shape: NumberListAttributeValue, location_name: "NS"))
324
+ AttributeValue.add_member(:bs, Shapes::ShapeRef.new(shape: BinaryListAttributeValue, location_name: "BS"))
325
+ AttributeValue.struct_class = Types::AttributeValue
326
+
327
+ AutoDetectionMetricSource.add_member(:s3_source_config, Shapes::ShapeRef.new(shape: AutoDetectionS3SourceConfig, location_name: "S3SourceConfig"))
328
+ AutoDetectionMetricSource.struct_class = Types::AutoDetectionMetricSource
329
+
330
+ AutoDetectionS3SourceConfig.add_member(:templated_path_list, Shapes::ShapeRef.new(shape: TemplatedPathList, location_name: "TemplatedPathList"))
331
+ AutoDetectionS3SourceConfig.add_member(:historical_data_path_list, Shapes::ShapeRef.new(shape: HistoricalDataPathList, location_name: "HistoricalDataPathList"))
332
+ AutoDetectionS3SourceConfig.struct_class = Types::AutoDetectionS3SourceConfig
333
+
299
334
  BackTestAnomalyDetectorRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
300
335
  BackTestAnomalyDetectorRequest.struct_class = Types::BackTestAnomalyDetectorRequest
301
336
 
302
337
  BackTestAnomalyDetectorResponse.struct_class = Types::BackTestAnomalyDetectorResponse
303
338
 
339
+ BinaryListAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
340
+
304
341
  CloudWatchConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "RoleArn"))
305
342
  CloudWatchConfig.struct_class = Types::CloudWatchConfig
306
343
 
@@ -421,6 +458,45 @@ module Aws::LookoutMetrics
421
458
  DescribeMetricSetResponse.add_member(:metric_source, Shapes::ShapeRef.new(shape: MetricSource, location_name: "MetricSource"))
422
459
  DescribeMetricSetResponse.struct_class = Types::DescribeMetricSetResponse
423
460
 
461
+ DetectMetricSetConfigRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
462
+ DetectMetricSetConfigRequest.add_member(:auto_detection_metric_source, Shapes::ShapeRef.new(shape: AutoDetectionMetricSource, required: true, location_name: "AutoDetectionMetricSource"))
463
+ DetectMetricSetConfigRequest.struct_class = Types::DetectMetricSetConfigRequest
464
+
465
+ DetectMetricSetConfigResponse.add_member(:detected_metric_set_config, Shapes::ShapeRef.new(shape: DetectedMetricSetConfig, location_name: "DetectedMetricSetConfig"))
466
+ DetectMetricSetConfigResponse.struct_class = Types::DetectMetricSetConfigResponse
467
+
468
+ DetectedCsvFormatDescriptor.add_member(:file_compression, Shapes::ShapeRef.new(shape: DetectedField, location_name: "FileCompression"))
469
+ DetectedCsvFormatDescriptor.add_member(:charset, Shapes::ShapeRef.new(shape: DetectedField, location_name: "Charset"))
470
+ DetectedCsvFormatDescriptor.add_member(:contains_header, Shapes::ShapeRef.new(shape: DetectedField, location_name: "ContainsHeader"))
471
+ DetectedCsvFormatDescriptor.add_member(:delimiter, Shapes::ShapeRef.new(shape: DetectedField, location_name: "Delimiter"))
472
+ DetectedCsvFormatDescriptor.add_member(:header_list, Shapes::ShapeRef.new(shape: DetectedField, location_name: "HeaderList"))
473
+ DetectedCsvFormatDescriptor.add_member(:quote_symbol, Shapes::ShapeRef.new(shape: DetectedField, location_name: "QuoteSymbol"))
474
+ DetectedCsvFormatDescriptor.struct_class = Types::DetectedCsvFormatDescriptor
475
+
476
+ DetectedField.add_member(:value, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "Value"))
477
+ DetectedField.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
478
+ DetectedField.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
479
+ DetectedField.struct_class = Types::DetectedField
480
+
481
+ DetectedFileFormatDescriptor.add_member(:csv_format_descriptor, Shapes::ShapeRef.new(shape: DetectedCsvFormatDescriptor, location_name: "CsvFormatDescriptor"))
482
+ DetectedFileFormatDescriptor.add_member(:json_format_descriptor, Shapes::ShapeRef.new(shape: DetectedJsonFormatDescriptor, location_name: "JsonFormatDescriptor"))
483
+ DetectedFileFormatDescriptor.struct_class = Types::DetectedFileFormatDescriptor
484
+
485
+ DetectedJsonFormatDescriptor.add_member(:file_compression, Shapes::ShapeRef.new(shape: DetectedField, location_name: "FileCompression"))
486
+ DetectedJsonFormatDescriptor.add_member(:charset, Shapes::ShapeRef.new(shape: DetectedField, location_name: "Charset"))
487
+ DetectedJsonFormatDescriptor.struct_class = Types::DetectedJsonFormatDescriptor
488
+
489
+ DetectedMetricSetConfig.add_member(:offset, Shapes::ShapeRef.new(shape: DetectedField, location_name: "Offset"))
490
+ DetectedMetricSetConfig.add_member(:metric_set_frequency, Shapes::ShapeRef.new(shape: DetectedField, location_name: "MetricSetFrequency"))
491
+ DetectedMetricSetConfig.add_member(:metric_source, Shapes::ShapeRef.new(shape: DetectedMetricSource, location_name: "MetricSource"))
492
+ DetectedMetricSetConfig.struct_class = Types::DetectedMetricSetConfig
493
+
494
+ DetectedMetricSource.add_member(:s3_source_config, Shapes::ShapeRef.new(shape: DetectedS3SourceConfig, location_name: "S3SourceConfig"))
495
+ DetectedMetricSource.struct_class = Types::DetectedMetricSource
496
+
497
+ DetectedS3SourceConfig.add_member(:file_format_descriptor, Shapes::ShapeRef.new(shape: DetectedFileFormatDescriptor, location_name: "FileFormatDescriptor"))
498
+ DetectedS3SourceConfig.struct_class = Types::DetectedS3SourceConfig
499
+
424
500
  DimensionContribution.add_member(:dimension_name, Shapes::ShapeRef.new(shape: ColumnName, location_name: "DimensionName"))
425
501
  DimensionContribution.add_member(:dimension_value_contribution_list, Shapes::ShapeRef.new(shape: DimensionValueContributionList, location_name: "DimensionValueContributionList"))
426
502
  DimensionContribution.struct_class = Types::DimensionContribution
@@ -609,6 +685,8 @@ module Aws::LookoutMetrics
609
685
 
610
686
  MetricValueList.member = Shapes::ShapeRef.new(shape: MetricValue)
611
687
 
688
+ NumberListAttributeValue.member = Shapes::ShapeRef.new(shape: NumberAttributeValue)
689
+
612
690
  PutFeedbackRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
613
691
  PutFeedbackRequest.add_member(:anomaly_group_time_series_feedback, Shapes::ShapeRef.new(shape: AnomalyGroupTimeSeriesFeedback, required: true, location_name: "AnomalyGroupTimeSeriesFeedback"))
614
692
  PutFeedbackRequest.struct_class = Types::PutFeedbackRequest
@@ -648,6 +726,7 @@ module Aws::LookoutMetrics
648
726
 
649
727
  SNSConfiguration.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
650
728
  SNSConfiguration.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "SnsTopicArn"))
729
+ SNSConfiguration.add_member(:sns_format, Shapes::ShapeRef.new(shape: SnsFormat, location_name: "SnsFormat"))
651
730
  SNSConfiguration.struct_class = Types::SNSConfiguration
652
731
 
653
732
  SampleDataS3SourceConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoleArn"))
@@ -669,6 +748,8 @@ module Aws::LookoutMetrics
669
748
  ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, location_name: "ServiceCode"))
670
749
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
671
750
 
751
+ StringListAttributeValue.member = Shapes::ShapeRef.new(shape: StringAttributeValue)
752
+
672
753
  SubnetIdList.member = Shapes::ShapeRef.new(shape: SubnetId)
673
754
 
674
755
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
@@ -939,6 +1020,19 @@ module Aws::LookoutMetrics
939
1020
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
940
1021
  end)
941
1022
 
1023
+ api.add_operation(:detect_metric_set_config, Seahorse::Model::Operation.new.tap do |o|
1024
+ o.name = "DetectMetricSetConfig"
1025
+ o.http_method = "POST"
1026
+ o.http_request_uri = "/DetectMetricSetConfig"
1027
+ o.input = Shapes::ShapeRef.new(shape: DetectMetricSetConfigRequest)
1028
+ o.output = Shapes::ShapeRef.new(shape: DetectMetricSetConfigResponse)
1029
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1030
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1031
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1032
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1033
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1034
+ end)
1035
+
942
1036
  api.add_operation(:get_anomaly_group, Seahorse::Model::Operation.new.tap do |o|
943
1037
  o.name = "GetAnomalyGroup"
944
1038
  o.http_method = "POST"
@@ -33,6 +33,7 @@ module Aws::LookoutMetrics
33
33
  # sns_configuration: {
34
34
  # role_arn: "Arn", # required
35
35
  # sns_topic_arn: "Arn", # required
36
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
36
37
  # },
37
38
  # lambda_configuration: {
38
39
  # role_arn: "Arn", # required
@@ -465,6 +466,96 @@ module Aws::LookoutMetrics
465
466
  include Aws::Structure
466
467
  end
467
468
 
469
+ # An attribute value.
470
+ #
471
+ # @!attribute [rw] s
472
+ # A string.
473
+ # @return [String]
474
+ #
475
+ # @!attribute [rw] n
476
+ # A number.
477
+ # @return [String]
478
+ #
479
+ # @!attribute [rw] b
480
+ # A binary value.
481
+ # @return [String]
482
+ #
483
+ # @!attribute [rw] ss
484
+ # A list of strings.
485
+ # @return [Array<String>]
486
+ #
487
+ # @!attribute [rw] ns
488
+ # A list of numbers.
489
+ # @return [Array<String>]
490
+ #
491
+ # @!attribute [rw] bs
492
+ # A list of binary values.
493
+ # @return [Array<String>]
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/AttributeValue AWS API Documentation
496
+ #
497
+ class AttributeValue < Struct.new(
498
+ :s,
499
+ :n,
500
+ :b,
501
+ :ss,
502
+ :ns,
503
+ :bs)
504
+ SENSITIVE = []
505
+ include Aws::Structure
506
+ end
507
+
508
+ # An auto detection metric source.
509
+ #
510
+ # @note When making an API call, you may pass AutoDetectionMetricSource
511
+ # data as a hash:
512
+ #
513
+ # {
514
+ # s3_source_config: {
515
+ # templated_path_list: ["TemplatedPath"],
516
+ # historical_data_path_list: ["HistoricalDataPath"],
517
+ # },
518
+ # }
519
+ #
520
+ # @!attribute [rw] s3_source_config
521
+ # The source's source config.
522
+ # @return [Types::AutoDetectionS3SourceConfig]
523
+ #
524
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/AutoDetectionMetricSource AWS API Documentation
525
+ #
526
+ class AutoDetectionMetricSource < Struct.new(
527
+ :s3_source_config)
528
+ SENSITIVE = []
529
+ include Aws::Structure
530
+ end
531
+
532
+ # An auto detection source config.
533
+ #
534
+ # @note When making an API call, you may pass AutoDetectionS3SourceConfig
535
+ # data as a hash:
536
+ #
537
+ # {
538
+ # templated_path_list: ["TemplatedPath"],
539
+ # historical_data_path_list: ["HistoricalDataPath"],
540
+ # }
541
+ #
542
+ # @!attribute [rw] templated_path_list
543
+ # The config's templated path list.
544
+ # @return [Array<String>]
545
+ #
546
+ # @!attribute [rw] historical_data_path_list
547
+ # The config's historical data path list.
548
+ # @return [Array<String>]
549
+ #
550
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/AutoDetectionS3SourceConfig AWS API Documentation
551
+ #
552
+ class AutoDetectionS3SourceConfig < Struct.new(
553
+ :templated_path_list,
554
+ :historical_data_path_list)
555
+ SENSITIVE = []
556
+ include Aws::Structure
557
+ end
558
+
468
559
  # @note When making an API call, you may pass BackTestAnomalyDetectorRequest
469
560
  # data as a hash:
470
561
  #
@@ -559,6 +650,7 @@ module Aws::LookoutMetrics
559
650
  # sns_configuration: {
560
651
  # role_arn: "Arn", # required
561
652
  # sns_topic_arn: "Arn", # required
653
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
562
654
  # },
563
655
  # lambda_configuration: {
564
656
  # role_arn: "Arn", # required
@@ -1227,6 +1319,201 @@ module Aws::LookoutMetrics
1227
1319
  include Aws::Structure
1228
1320
  end
1229
1321
 
1322
+ # @note When making an API call, you may pass DetectMetricSetConfigRequest
1323
+ # data as a hash:
1324
+ #
1325
+ # {
1326
+ # anomaly_detector_arn: "Arn", # required
1327
+ # auto_detection_metric_source: { # required
1328
+ # s3_source_config: {
1329
+ # templated_path_list: ["TemplatedPath"],
1330
+ # historical_data_path_list: ["HistoricalDataPath"],
1331
+ # },
1332
+ # },
1333
+ # }
1334
+ #
1335
+ # @!attribute [rw] anomaly_detector_arn
1336
+ # An anomaly detector ARN.
1337
+ # @return [String]
1338
+ #
1339
+ # @!attribute [rw] auto_detection_metric_source
1340
+ # A data source.
1341
+ # @return [Types::AutoDetectionMetricSource]
1342
+ #
1343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectMetricSetConfigRequest AWS API Documentation
1344
+ #
1345
+ class DetectMetricSetConfigRequest < Struct.new(
1346
+ :anomaly_detector_arn,
1347
+ :auto_detection_metric_source)
1348
+ SENSITIVE = []
1349
+ include Aws::Structure
1350
+ end
1351
+
1352
+ # @!attribute [rw] detected_metric_set_config
1353
+ # The inferred dataset configuration for the datasource.
1354
+ # @return [Types::DetectedMetricSetConfig]
1355
+ #
1356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectMetricSetConfigResponse AWS API Documentation
1357
+ #
1358
+ class DetectMetricSetConfigResponse < Struct.new(
1359
+ :detected_metric_set_config)
1360
+ SENSITIVE = []
1361
+ include Aws::Structure
1362
+ end
1363
+
1364
+ # Properties of an inferred CSV format.
1365
+ #
1366
+ # @!attribute [rw] file_compression
1367
+ # The format's file compression.
1368
+ # @return [Types::DetectedField]
1369
+ #
1370
+ # @!attribute [rw] charset
1371
+ # The format's charset.
1372
+ # @return [Types::DetectedField]
1373
+ #
1374
+ # @!attribute [rw] contains_header
1375
+ # Whether the format includes a header.
1376
+ # @return [Types::DetectedField]
1377
+ #
1378
+ # @!attribute [rw] delimiter
1379
+ # The format's delimiter.
1380
+ # @return [Types::DetectedField]
1381
+ #
1382
+ # @!attribute [rw] header_list
1383
+ # The format's header list.
1384
+ # @return [Types::DetectedField]
1385
+ #
1386
+ # @!attribute [rw] quote_symbol
1387
+ # The format's quote symbol.
1388
+ # @return [Types::DetectedField]
1389
+ #
1390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedCsvFormatDescriptor AWS API Documentation
1391
+ #
1392
+ class DetectedCsvFormatDescriptor < Struct.new(
1393
+ :file_compression,
1394
+ :charset,
1395
+ :contains_header,
1396
+ :delimiter,
1397
+ :header_list,
1398
+ :quote_symbol)
1399
+ SENSITIVE = []
1400
+ include Aws::Structure
1401
+ end
1402
+
1403
+ # An inferred field.
1404
+ #
1405
+ # @!attribute [rw] value
1406
+ # The field's value.
1407
+ # @return [Types::AttributeValue]
1408
+ #
1409
+ # @!attribute [rw] confidence
1410
+ # The field's confidence.
1411
+ # @return [String]
1412
+ #
1413
+ # @!attribute [rw] message
1414
+ # The field's message.
1415
+ # @return [String]
1416
+ #
1417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedField AWS API Documentation
1418
+ #
1419
+ class DetectedField < Struct.new(
1420
+ :value,
1421
+ :confidence,
1422
+ :message)
1423
+ SENSITIVE = []
1424
+ include Aws::Structure
1425
+ end
1426
+
1427
+ # Properties of an inferred data format.
1428
+ #
1429
+ # @!attribute [rw] csv_format_descriptor
1430
+ # Details about a CSV format.
1431
+ # @return [Types::DetectedCsvFormatDescriptor]
1432
+ #
1433
+ # @!attribute [rw] json_format_descriptor
1434
+ # Details about a JSON format.
1435
+ # @return [Types::DetectedJsonFormatDescriptor]
1436
+ #
1437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedFileFormatDescriptor AWS API Documentation
1438
+ #
1439
+ class DetectedFileFormatDescriptor < Struct.new(
1440
+ :csv_format_descriptor,
1441
+ :json_format_descriptor)
1442
+ SENSITIVE = []
1443
+ include Aws::Structure
1444
+ end
1445
+
1446
+ # A detected JSON format descriptor.
1447
+ #
1448
+ # @!attribute [rw] file_compression
1449
+ # The format's file compression.
1450
+ # @return [Types::DetectedField]
1451
+ #
1452
+ # @!attribute [rw] charset
1453
+ # The format's character set.
1454
+ # @return [Types::DetectedField]
1455
+ #
1456
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedJsonFormatDescriptor AWS API Documentation
1457
+ #
1458
+ class DetectedJsonFormatDescriptor < Struct.new(
1459
+ :file_compression,
1460
+ :charset)
1461
+ SENSITIVE = []
1462
+ include Aws::Structure
1463
+ end
1464
+
1465
+ # An inferred dataset configuration.
1466
+ #
1467
+ # @!attribute [rw] offset
1468
+ # The dataset's offset.
1469
+ # @return [Types::DetectedField]
1470
+ #
1471
+ # @!attribute [rw] metric_set_frequency
1472
+ # The dataset's interval.
1473
+ # @return [Types::DetectedField]
1474
+ #
1475
+ # @!attribute [rw] metric_source
1476
+ # The dataset's data source.
1477
+ # @return [Types::DetectedMetricSource]
1478
+ #
1479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedMetricSetConfig AWS API Documentation
1480
+ #
1481
+ class DetectedMetricSetConfig < Struct.new(
1482
+ :offset,
1483
+ :metric_set_frequency,
1484
+ :metric_source)
1485
+ SENSITIVE = []
1486
+ include Aws::Structure
1487
+ end
1488
+
1489
+ # An inferred data source.
1490
+ #
1491
+ # @!attribute [rw] s3_source_config
1492
+ # The data source's source configuration.
1493
+ # @return [Types::DetectedS3SourceConfig]
1494
+ #
1495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedMetricSource AWS API Documentation
1496
+ #
1497
+ class DetectedMetricSource < Struct.new(
1498
+ :s3_source_config)
1499
+ SENSITIVE = []
1500
+ include Aws::Structure
1501
+ end
1502
+
1503
+ # An inferred source configuration.
1504
+ #
1505
+ # @!attribute [rw] file_format_descriptor
1506
+ # The source's file format descriptor.
1507
+ # @return [Types::DetectedFileFormatDescriptor]
1508
+ #
1509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DetectedS3SourceConfig AWS API Documentation
1510
+ #
1511
+ class DetectedS3SourceConfig < Struct.new(
1512
+ :file_format_descriptor)
1513
+ SENSITIVE = []
1514
+ include Aws::Structure
1515
+ end
1516
+
1230
1517
  # Details about a dimension that contributed to an anomaly.
1231
1518
  #
1232
1519
  # @!attribute [rw] dimension_name
@@ -2457,6 +2744,7 @@ module Aws::LookoutMetrics
2457
2744
  # {
2458
2745
  # role_arn: "Arn", # required
2459
2746
  # sns_topic_arn: "Arn", # required
2747
+ # sns_format: "LONG_TEXT", # accepts LONG_TEXT, SHORT_TEXT, JSON
2460
2748
  # }
2461
2749
  #
2462
2750
  # @!attribute [rw] role_arn
@@ -2467,11 +2755,16 @@ module Aws::LookoutMetrics
2467
2755
  # The ARN of the target SNS topic.
2468
2756
  # @return [String]
2469
2757
  #
2758
+ # @!attribute [rw] sns_format
2759
+ # The text format for alerts.
2760
+ # @return [String]
2761
+ #
2470
2762
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/SNSConfiguration AWS API Documentation
2471
2763
  #
2472
2764
  class SNSConfiguration < Struct.new(
2473
2765
  :role_arn,
2474
- :sns_topic_arn)
2766
+ :sns_topic_arn,
2767
+ :sns_format)
2475
2768
  SENSITIVE = []
2476
2769
  include Aws::Structure
2477
2770
  end
@@ -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.14.0'
51
+ GEM_VERSION = '1.17.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.14.0
4
+ version: 1.17.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-02-03 00:00:00.000000000 Z
11
+ date: 2022-05-19 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.126.0
22
+ version: 3.127.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.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement