Skip to content

Commit dcf3f98

Browse files
author
AWS
committed
Amazon Lookout for Metrics Update: Added DetectMetricSetConfig API for detecting configuration required for creating metric set from provided S3 data source.
1 parent 55f314f commit dcf3f98

File tree

2 files changed

+240
-0
lines changed

2 files changed

+240
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lookout for Metrics",
4+
"contributor": "",
5+
"description": "Added DetectMetricSetConfig API for detecting configuration required for creating metric set from provided S3 data source."
6+
}

services/lookoutmetrics/src/main/resources/codegen-resources/service-2.json

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,23 @@
226226
],
227227
"documentation":"<p>Describes a dataset.</p> <p>Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.</p>"
228228
},
229+
"DetectMetricSetConfig":{
230+
"name":"DetectMetricSetConfig",
231+
"http":{
232+
"method":"POST",
233+
"requestUri":"/DetectMetricSetConfig"
234+
},
235+
"input":{"shape":"DetectMetricSetConfigRequest"},
236+
"output":{"shape":"DetectMetricSetConfigResponse"},
237+
"errors":[
238+
{"shape":"ResourceNotFoundException"},
239+
{"shape":"ValidationException"},
240+
{"shape":"InternalServerException"},
241+
{"shape":"AccessDeniedException"},
242+
{"shape":"TooManyRequestsException"}
243+
],
244+
"documentation":"<p>Detects an Amazon S3 dataset's file format, interval, and offset.</p>"
245+
},
229246
"GetAnomalyGroup":{
230247
"name":"GetAnomalyGroup",
231248
"http":{
@@ -890,6 +907,60 @@
890907
"max":256,
891908
"pattern":"arn:([a-z\\d-]+):.*:.*:.*:.+"
892909
},
910+
"AttributeValue":{
911+
"type":"structure",
912+
"members":{
913+
"S":{
914+
"shape":"StringAttributeValue",
915+
"documentation":"<p>A string.</p>"
916+
},
917+
"N":{
918+
"shape":"NumberAttributeValue",
919+
"documentation":"<p>A number.</p>"
920+
},
921+
"B":{
922+
"shape":"BinaryAttributeValue",
923+
"documentation":"<p>A binary value.</p>"
924+
},
925+
"SS":{
926+
"shape":"StringListAttributeValue",
927+
"documentation":"<p>A list of strings.</p>"
928+
},
929+
"NS":{
930+
"shape":"NumberListAttributeValue",
931+
"documentation":"<p>A list of numbers.</p>"
932+
},
933+
"BS":{
934+
"shape":"BinaryListAttributeValue",
935+
"documentation":"<p>A list of binary values.</p>"
936+
}
937+
},
938+
"documentation":"<p>An attribute value.</p>"
939+
},
940+
"AutoDetectionMetricSource":{
941+
"type":"structure",
942+
"members":{
943+
"S3SourceConfig":{
944+
"shape":"AutoDetectionS3SourceConfig",
945+
"documentation":"<p>The source's source config.</p>"
946+
}
947+
},
948+
"documentation":"<p>An auto detection metric source.</p>"
949+
},
950+
"AutoDetectionS3SourceConfig":{
951+
"type":"structure",
952+
"members":{
953+
"TemplatedPathList":{
954+
"shape":"TemplatedPathList",
955+
"documentation":"<p>The config's templated path list.</p>"
956+
},
957+
"HistoricalDataPathList":{
958+
"shape":"HistoricalDataPathList",
959+
"documentation":"<p>The config's historical data path list.</p>"
960+
}
961+
},
962+
"documentation":"<p>An auto detection source config.</p>"
963+
},
893964
"BackTestAnomalyDetectorRequest":{
894965
"type":"structure",
895966
"required":["AnomalyDetectorArn"],
@@ -905,6 +976,11 @@
905976
"members":{
906977
}
907978
},
979+
"BinaryAttributeValue":{"type":"string"},
980+
"BinaryListAttributeValue":{
981+
"type":"list",
982+
"member":{"shape":"BinaryAttributeValue"}
983+
},
908984
"Boolean":{"type":"boolean"},
909985
"CSVFileCompression":{
910986
"type":"string",
@@ -934,6 +1010,14 @@
9341010
"min":1,
9351011
"pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
9361012
},
1013+
"Confidence":{
1014+
"type":"string",
1015+
"enum":[
1016+
"HIGH",
1017+
"LOW",
1018+
"NONE"
1019+
]
1020+
},
9371021
"ConflictException":{
9381022
"type":"structure",
9391023
"required":["Message"],
@@ -1384,6 +1468,146 @@
13841468
}
13851469
}
13861470
},
1471+
"DetectMetricSetConfigRequest":{
1472+
"type":"structure",
1473+
"required":[
1474+
"AnomalyDetectorArn",
1475+
"AutoDetectionMetricSource"
1476+
],
1477+
"members":{
1478+
"AnomalyDetectorArn":{
1479+
"shape":"Arn",
1480+
"documentation":"<p>An anomaly detector ARN.</p>"
1481+
},
1482+
"AutoDetectionMetricSource":{
1483+
"shape":"AutoDetectionMetricSource",
1484+
"documentation":"<p>A data source.</p>"
1485+
}
1486+
}
1487+
},
1488+
"DetectMetricSetConfigResponse":{
1489+
"type":"structure",
1490+
"members":{
1491+
"DetectedMetricSetConfig":{
1492+
"shape":"DetectedMetricSetConfig",
1493+
"documentation":"<p>The inferred dataset configuration for the datasource.</p>"
1494+
}
1495+
}
1496+
},
1497+
"DetectedCsvFormatDescriptor":{
1498+
"type":"structure",
1499+
"members":{
1500+
"FileCompression":{
1501+
"shape":"DetectedField",
1502+
"documentation":"<p>The format's file compression.</p>"
1503+
},
1504+
"Charset":{
1505+
"shape":"DetectedField",
1506+
"documentation":"<p>The format's charset.</p>"
1507+
},
1508+
"ContainsHeader":{
1509+
"shape":"DetectedField",
1510+
"documentation":"<p>Whether the format includes a header.</p>"
1511+
},
1512+
"Delimiter":{
1513+
"shape":"DetectedField",
1514+
"documentation":"<p>The format's delimiter.</p>"
1515+
},
1516+
"HeaderList":{
1517+
"shape":"DetectedField",
1518+
"documentation":"<p>The format's header list.</p>"
1519+
},
1520+
"QuoteSymbol":{
1521+
"shape":"DetectedField",
1522+
"documentation":"<p>The format's quote symbol.</p>"
1523+
}
1524+
},
1525+
"documentation":"<p>Properties of an inferred CSV format.</p>"
1526+
},
1527+
"DetectedField":{
1528+
"type":"structure",
1529+
"members":{
1530+
"Value":{
1531+
"shape":"AttributeValue",
1532+
"documentation":"<p>The field's value.</p>"
1533+
},
1534+
"Confidence":{
1535+
"shape":"Confidence",
1536+
"documentation":"<p>The field's confidence.</p>"
1537+
},
1538+
"Message":{
1539+
"shape":"Message",
1540+
"documentation":"<p>The field's message.</p>"
1541+
}
1542+
},
1543+
"documentation":"<p>An inferred field.</p>"
1544+
},
1545+
"DetectedFileFormatDescriptor":{
1546+
"type":"structure",
1547+
"members":{
1548+
"CsvFormatDescriptor":{
1549+
"shape":"DetectedCsvFormatDescriptor",
1550+
"documentation":"<p>Details about a CSV format.</p>"
1551+
},
1552+
"JsonFormatDescriptor":{
1553+
"shape":"DetectedJsonFormatDescriptor",
1554+
"documentation":"<p>Details about a JSON format.</p>"
1555+
}
1556+
},
1557+
"documentation":"<p>Properties of an inferred data format.</p>"
1558+
},
1559+
"DetectedJsonFormatDescriptor":{
1560+
"type":"structure",
1561+
"members":{
1562+
"FileCompression":{
1563+
"shape":"DetectedField",
1564+
"documentation":"<p>The format's file compression.</p>"
1565+
},
1566+
"Charset":{
1567+
"shape":"DetectedField",
1568+
"documentation":"<p>The format's character set.</p>"
1569+
}
1570+
},
1571+
"documentation":"<p>A detected JSON format descriptor.</p>"
1572+
},
1573+
"DetectedMetricSetConfig":{
1574+
"type":"structure",
1575+
"members":{
1576+
"Offset":{
1577+
"shape":"DetectedField",
1578+
"documentation":"<p>The dataset's offset.</p>"
1579+
},
1580+
"MetricSetFrequency":{
1581+
"shape":"DetectedField",
1582+
"documentation":"<p>The dataset's interval.</p>"
1583+
},
1584+
"MetricSource":{
1585+
"shape":"DetectedMetricSource",
1586+
"documentation":"<p>The dataset's data source.</p>"
1587+
}
1588+
},
1589+
"documentation":"<p>An inferred dataset configuration.</p>"
1590+
},
1591+
"DetectedMetricSource":{
1592+
"type":"structure",
1593+
"members":{
1594+
"S3SourceConfig":{
1595+
"shape":"DetectedS3SourceConfig",
1596+
"documentation":"<p>The data source's source configuration.</p>"
1597+
}
1598+
},
1599+
"documentation":"<p>An inferred data source.</p>"
1600+
},
1601+
"DetectedS3SourceConfig":{
1602+
"type":"structure",
1603+
"members":{
1604+
"FileFormatDescriptor":{
1605+
"shape":"DetectedFileFormatDescriptor",
1606+
"documentation":"<p>The source's file format descriptor.</p>"
1607+
}
1608+
},
1609+
"documentation":"<p>An inferred source configuration.</p>"
1610+
},
13871611
"DimensionContribution":{
13881612
"type":"structure",
13891613
"members":{
@@ -2119,6 +2343,11 @@
21192343
"min":1,
21202344
"pattern":".*\\S.*"
21212345
},
2346+
"NumberAttributeValue":{"type":"string"},
2347+
"NumberListAttributeValue":{
2348+
"type":"list",
2349+
"member":{"shape":"NumberAttributeValue"}
2350+
},
21222351
"Offset":{
21232352
"type":"integer",
21242353
"max":432000,
@@ -2404,6 +2633,11 @@
24042633
"error":{"httpStatusCode":402},
24052634
"exception":true
24062635
},
2636+
"StringAttributeValue":{"type":"string"},
2637+
"StringListAttributeValue":{
2638+
"type":"list",
2639+
"member":{"shape":"StringAttributeValue"}
2640+
},
24072641
"SubnetId":{
24082642
"type":"string",
24092643
"max":255,

0 commit comments

Comments
 (0)