get_asset_property_value_history
async
¶
get_asset_property_value_history(
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
asset_id: Optional[ID] = None,
property_id: Optional[ID] = None,
property_alias: Optional[AssetPropertyAlias] = None,
start_date: Optional[Timestamp] = None,
end_date: Optional[Timestamp] = None,
qualities: Optional[Qualities] = None,
time_ordering: Optional[TimeOrdering] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[GetAssetPropertyValueHistoryMaxResults] = None,
) -> GetAssetPropertyValueHistoryResponse
Gets the history of an asset property's values. For more information, see Querying historical values in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
-
The
assetIdandpropertyIdof an asset property. -
A
propertyAlias, which is a data stream alias (for example,/company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
Parameters:
-
asset_id(Optional[ID], default:None) –The ID of the asset, in UUID format.
-
property_id(Optional[ID], default:None) –The ID of the asset property, in UUID format.
-
property_alias(Optional[AssetPropertyAlias], default:None) –The alias that identifies the property, such as an OPC-UA server data stream path (for example,
/company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide. -
start_date(Optional[Timestamp], default:None) –The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.
-
end_date(Optional[Timestamp], default:None) –The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.
-
qualities(Optional[Qualities], default:None) –The quality by which to filter asset data.
-
time_ordering(Optional[TimeOrdering], default:None) –The chronological sorting order of the requested information.
Default:
ASCENDING -
next_token(Optional[NextToken], default:None) –The token to be used for the next set of paginated results.
-
max_results(Optional[GetAssetPropertyValueHistoryMaxResults], default:None) –The maximum number of results to return for each paginated request. A result set is returned in the two cases, whichever occurs first.
-
The size of the result set is equal to 4 MB.
-
The number of data points in the result set is equal to the value of
maxResults. The maximum value ofmaxResultsis 20000.
-
Raises:
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
ResourceNotFoundException–The requested resource can't be found.
-
ServiceUnavailableException–The requested service is unavailable.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 | |