Skip to main content

asset_property_value_histories

Creates, updates, deletes, gets or lists an asset_property_value_histories resource.

Overview

Nameasset_property_value_histories
TypeResource
Idaws.iotsitewise.asset_property_value_histories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
error_entriesarrayA list of the errors (if any) associated with the batch request. Each error entry contains the entryId of the entry that failed.
next_tokenstringThe token for the next set of results, or null if there are no additional results. (pattern: <code>[A-Za-z0-9+/=]+</code>)
skipped_entriesarrayA list of entries that were not processed by this batch request. because these entries had been completely processed by previous paginated requests. Each skipped entry contains the entryId of the entry that skipped.
success_entriesarrayA list of entries that were processed successfully by this batch request. Each success entry contains the entryId of the entry that succeeded and the latest query result.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_asset_property_value_historyselectregionGets the historical values for one or more asset properties. For more information, see Querying historical values in the IoT SiteWise User Guide.
get_asset_property_value_historyselectregionassetId, propertyId, propertyAlias, startDate, endDate, qualities, timeOrdering, nextToken, maxResultsGets 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 assetId and propertyId of 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
assetIdstringThe ID of the asset, in UUID format.
endDatestring (date-time)The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.
maxResultsintegerThe 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 of maxResults is 20000.
nextTokenstringThe token to be used for the next set of paginated results.
propertyAliasstringThe 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.
propertyIdstringThe ID of the asset property, in UUID format.
qualitiesarrayThe quality by which to filter asset data.
startDatestring (date-time)The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.
timeOrderingstringThe chronological sorting order of the requested information. Default: ASCENDING

SELECT examples

Gets the historical values for one or more asset properties. For more information, see Querying historical values in the IoT SiteWise User Guide.

SELECT
error_entries,
next_token,
skipped_entries,
success_entries
FROM aws.iotsitewise.asset_property_value_histories
WHERE region = '{{ region }}' -- required
;