Skip to content

Commit 0b1c1ac

Browse files
author
AWS
committed
AWS IoT Update: AWS IoT - AWS IoT Device Defender adds support to list metric datapoints collected for IoT devices through the ListMetricValues API
1 parent 05185d3 commit 0b1c1ac

File tree

3 files changed

+122
-4
lines changed

3 files changed

+122
-4
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": "AWS IoT",
4+
"contributor": "",
5+
"description": "AWS IoT - AWS IoT Device Defender adds support to list metric datapoints collected for IoT devices through the ListMetricValues API"
6+
}

services/iot/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@
144144
"output_token": "nextToken",
145145
"result_key": "jobs"
146146
},
147+
"ListMetricValues": {
148+
"input_token": "nextToken",
149+
"limit_key": "maxResults",
150+
"output_token": "nextToken",
151+
"result_key": "metricDatumList"
152+
},
147153
"ListMitigationActions": {
148154
"input_token": "nextToken",
149155
"limit_key": "maxResults",

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

Lines changed: 110 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,6 +2658,22 @@
26582658
],
26592659
"documentation":"<p>Returns a list of managed job templates.</p>"
26602660
},
2661+
"ListMetricValues":{
2662+
"name":"ListMetricValues",
2663+
"http":{
2664+
"method":"GET",
2665+
"requestUri":"/metric-values"
2666+
},
2667+
"input":{"shape":"ListMetricValuesRequest"},
2668+
"output":{"shape":"ListMetricValuesResponse"},
2669+
"errors":[
2670+
{"shape":"InvalidRequestException"},
2671+
{"shape":"ThrottlingException"},
2672+
{"shape":"InternalFailureException"},
2673+
{"shape":"ResourceNotFoundException"}
2674+
],
2675+
"documentation":"<p>Lists the values reported for an IoT Device Defender metric (device-side metric, cloud-side metric, or custom metric) by the given thing during the specified time period.</p>"
2676+
},
26612677
"ListMitigationActions":{
26622678
"name":"ListMitigationActions",
26632679
"http":{
@@ -4338,7 +4354,7 @@
43384354
"documentation":"<p>The list of groups to which you want to add the things that triggered the mitigation action. You can add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the same hierarchy.</p>"
43394355
},
43404356
"overrideDynamicGroups":{
4341-
"shape":"OverrideDynamicGroups",
4357+
"shape":"NullableBoolean",
43424358
"documentation":"<p>Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.</p>"
43434359
}
43444360
},
@@ -7609,11 +7625,11 @@
76097625
},
76107626
"hashAlgorithm":{
76117627
"shape":"HashAlgorithm",
7612-
"documentation":"<p>The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you can pass either of them based on which was used for generating the signature.</p>"
7628+
"documentation":"<p>The hash algorithm used to code sign the file.</p>"
76137629
},
76147630
"signatureAlgorithm":{
76157631
"shape":"SignatureAlgorithm",
7616-
"documentation":"<p>The signature algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you can pass either of them based on which was used for generating the signature.</p>"
7632+
"documentation":"<p>The signature algorithm used to code sign the file.</p>"
76177633
}
76187634
},
76197635
"documentation":"<p>Describes a custom method used to code sign a file.</p>"
@@ -12862,6 +12878,78 @@
1286212878
}
1286312879
}
1286412880
},
12881+
"ListMetricValuesRequest":{
12882+
"type":"structure",
12883+
"required":[
12884+
"thingName",
12885+
"metricName",
12886+
"startTime",
12887+
"endTime"
12888+
],
12889+
"members":{
12890+
"thingName":{
12891+
"shape":"DeviceDefenderThingName",
12892+
"documentation":"<p>The name of the thing for which security profile metric values are returned.</p>",
12893+
"location":"querystring",
12894+
"locationName":"thingName"
12895+
},
12896+
"metricName":{
12897+
"shape":"BehaviorMetric",
12898+
"documentation":"<p>The name of the security profile metric for which values are returned.</p>",
12899+
"location":"querystring",
12900+
"locationName":"metricName"
12901+
},
12902+
"dimensionName":{
12903+
"shape":"DimensionName",
12904+
"documentation":"<p>The dimension name.</p>",
12905+
"location":"querystring",
12906+
"locationName":"dimensionName"
12907+
},
12908+
"dimensionValueOperator":{
12909+
"shape":"DimensionValueOperator",
12910+
"documentation":"<p>The dimension value operator.</p>",
12911+
"location":"querystring",
12912+
"locationName":"dimensionValueOperator"
12913+
},
12914+
"startTime":{
12915+
"shape":"Timestamp",
12916+
"documentation":"<p>The start of the time period for which metric values are returned.</p>",
12917+
"location":"querystring",
12918+
"locationName":"startTime"
12919+
},
12920+
"endTime":{
12921+
"shape":"Timestamp",
12922+
"documentation":"<p>The end of the time period for which metric values are returned.</p>",
12923+
"location":"querystring",
12924+
"locationName":"endTime"
12925+
},
12926+
"maxResults":{
12927+
"shape":"MaxResults",
12928+
"documentation":"<p>The maximum number of results to return at one time.</p>",
12929+
"location":"querystring",
12930+
"locationName":"maxResults"
12931+
},
12932+
"nextToken":{
12933+
"shape":"NextToken",
12934+
"documentation":"<p>The token for the next set of results.</p>",
12935+
"location":"querystring",
12936+
"locationName":"nextToken"
12937+
}
12938+
}
12939+
},
12940+
"ListMetricValuesResponse":{
12941+
"type":"structure",
12942+
"members":{
12943+
"metricDatumList":{
12944+
"shape":"MetricDatumList",
12945+
"documentation":"<p>The data the thing reports for the metric during the specified time period.</p>"
12946+
},
12947+
"nextToken":{
12948+
"shape":"NextToken",
12949+
"documentation":"<p>A token that can be used to retrieve the next set of results, or <code>null</code> if there are no additional results.</p>"
12950+
}
12951+
}
12952+
},
1286512953
"ListMitigationActionsRequest":{
1286612954
"type":"structure",
1286712955
"members":{
@@ -14266,6 +14354,24 @@
1426614354
"type":"string",
1426714355
"max":128
1426814356
},
14357+
"MetricDatum":{
14358+
"type":"structure",
14359+
"members":{
14360+
"timestamp":{
14361+
"shape":"Timestamp",
14362+
"documentation":"<p>The time the metric value was reported.</p>"
14363+
},
14364+
"value":{
14365+
"shape":"MetricValue",
14366+
"documentation":"<p>The value reported for the metric.</p>"
14367+
}
14368+
},
14369+
"documentation":"<p>A metric.</p>"
14370+
},
14371+
"MetricDatumList":{
14372+
"type":"list",
14373+
"member":{"shape":"MetricDatum"}
14374+
},
1426914375
"MetricDimension":{
1427014376
"type":"structure",
1427114377
"required":["dimensionName"],
@@ -18801,7 +18907,7 @@
1880118907
"VerificationStateDescription":{
1880218908
"type":"string",
1880318909
"max":1000,
18804-
"pattern":"[\\p{Graph}\\x20]*"
18910+
"pattern":"[^\\p{Cntrl}]*"
1880518911
},
1880618912
"Version":{"type":"long"},
1880718913
"VersionConflictException":{

0 commit comments

Comments
 (0)