aws.iotsitewise.get_interpolated_asset_property_values
Example SQL Queries
SELECT * FROMaws.iotsitewise.get_interpolated_asset_property_valuesWHERE"start_time_in_seconds" = 'VALUE'AND "end_time_in_seconds" = 'VALUE'AND "quality" = 'VALUE'AND "interval_in_seconds" = 'VALUE'AND "type" = 'VALUE';Description
Get interpolated values for an asset property for a specified time interval, during a period of time. If your time series is missing data points during the specified time interval, you can use interpolation to estimate the missing data.
For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days.
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.
Table Definition
| Column Name | Column Data Type |
|---|---|
| end_time_in_seconds Required Input Column The inclusive end of the range from which to interpolate data, expressed in seconds in Unix epoch time. | BIGINT |
| interval_in_seconds Required Input Column The time interval in seconds over which to interpolate data. Each interval starts when the previous one ends. | BIGINT |
| quality Required Input Column The quality of the asset property value. You can use this parameter as a filter to choose only the asset property values that have a specific quality. | VARCHAR |
| start_time_in_seconds Required Input Column The exclusive start of the range from which to interpolate data, expressed in seconds in Unix epoch time. | BIGINT |
| type Required Input Column The interpolation type. Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
| VARCHAR |
| asset_id Input Column The ID of the asset, in UUID format. | VARCHAR |
| end_time_offset_in_nanos Input Column The nanosecond offset converted from endTimeInSeconds. | BIGINT |
| interval_window_in_seconds Input Column The query interval for the window, in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval, minus the window to the timestamp of each interval plus the window. If not specified, the window ranges between the start time minus the interval and the end time plus the interval.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 3, 2021 to compute the second interpolated value, and so on. | BIGINT |
| property_alias Input Column 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. | VARCHAR |
| property_id Input Column The ID of the asset property, in UUID format. | VARCHAR |
| start_time_offset_in_nanos Input Column The nanosecond offset converted from startTimeInSeconds. | BIGINT |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| timestamp Contains a timestamp with optional nanosecond granularity. | STRUCT( |
Show child fields
| |
| value Contains an asset property value (of a single type only). | STRUCT( |
Show child fields
| |