IoT.Client.update_fleet_metric(**kwargs)¶Updates the data for a fleet metric.
Requires permission to access the UpdateFleetMetric action.
See also: AWS API Documentation
Request Syntax
response = client.update_fleet_metric(
metricName='string',
queryString='string',
aggregationType={
'name': 'Statistics'|'Percentiles'|'Cardinality',
'values': [
'string',
]
},
period=123,
aggregationField='string',
description='string',
queryVersion='string',
indexName='string',
unit='Seconds'|'Microseconds'|'Milliseconds'|'Bytes'|'Kilobytes'|'Megabytes'|'Gigabytes'|'Terabytes'|'Bits'|'Kilobits'|'Megabits'|'Gigabits'|'Terabits'|'Percent'|'Count'|'Bytes/Second'|'Kilobytes/Second'|'Megabytes/Second'|'Gigabytes/Second'|'Terabytes/Second'|'Bits/Second'|'Kilobits/Second'|'Megabits/Second'|'Gigabits/Second'|'Terabits/Second'|'Count/Second'|'None',
expectedVersion=123
)
[REQUIRED]
The name of the fleet metric to update.
The type of the aggregation query.
The name of the aggregation type.
A list of the values of aggregation types.
[REQUIRED]
The name of the index to search.
None
Exceptions
IoT.Client.exceptions.InvalidRequestExceptionIoT.Client.exceptions.ThrottlingExceptionIoT.Client.exceptions.UnauthorizedExceptionIoT.Client.exceptions.ServiceUnavailableExceptionIoT.Client.exceptions.InternalFailureExceptionIoT.Client.exceptions.ResourceNotFoundExceptionIoT.Client.exceptions.InvalidQueryExceptionIoT.Client.exceptions.InvalidAggregationExceptionIoT.Client.exceptions.VersionConflictExceptionIoT.Client.exceptions.IndexNotReadyException