Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets aggregated values for an asset property. For more information, see Querying aggregates in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
- The
assetId
andpropertyId
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.
This operation returns paginated results.
Synopsis
- data GetAssetPropertyAggregates = GetAssetPropertyAggregates' {}
- newGetAssetPropertyAggregates :: NonEmpty AggregateType -> Text -> UTCTime -> UTCTime -> GetAssetPropertyAggregates
- getAssetPropertyAggregates_qualities :: Lens' GetAssetPropertyAggregates (Maybe (NonEmpty Quality))
- getAssetPropertyAggregates_timeOrdering :: Lens' GetAssetPropertyAggregates (Maybe TimeOrdering)
- getAssetPropertyAggregates_propertyAlias :: Lens' GetAssetPropertyAggregates (Maybe Text)
- getAssetPropertyAggregates_nextToken :: Lens' GetAssetPropertyAggregates (Maybe Text)
- getAssetPropertyAggregates_propertyId :: Lens' GetAssetPropertyAggregates (Maybe Text)
- getAssetPropertyAggregates_assetId :: Lens' GetAssetPropertyAggregates (Maybe Text)
- getAssetPropertyAggregates_maxResults :: Lens' GetAssetPropertyAggregates (Maybe Natural)
- getAssetPropertyAggregates_aggregateTypes :: Lens' GetAssetPropertyAggregates (NonEmpty AggregateType)
- getAssetPropertyAggregates_resolution :: Lens' GetAssetPropertyAggregates Text
- getAssetPropertyAggregates_startDate :: Lens' GetAssetPropertyAggregates UTCTime
- getAssetPropertyAggregates_endDate :: Lens' GetAssetPropertyAggregates UTCTime
- data GetAssetPropertyAggregatesResponse = GetAssetPropertyAggregatesResponse' {}
- newGetAssetPropertyAggregatesResponse :: Int -> GetAssetPropertyAggregatesResponse
- getAssetPropertyAggregatesResponse_nextToken :: Lens' GetAssetPropertyAggregatesResponse (Maybe Text)
- getAssetPropertyAggregatesResponse_httpStatus :: Lens' GetAssetPropertyAggregatesResponse Int
- getAssetPropertyAggregatesResponse_aggregatedValues :: Lens' GetAssetPropertyAggregatesResponse [AggregatedValue]
Creating a Request
data GetAssetPropertyAggregates Source #
See: newGetAssetPropertyAggregates
smart constructor.
GetAssetPropertyAggregates' | |
|
Instances
newGetAssetPropertyAggregates Source #
Create a value of GetAssetPropertyAggregates
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:qualities:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_qualities
- The quality by which to filter asset data.
$sel:timeOrdering:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_timeOrdering
- The chronological sorting order of the requested information.
Default: ASCENDING
$sel:propertyAlias:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_propertyAlias
- 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.
$sel:nextToken:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_nextToken
- The token to be used for the next set of paginated results.
$sel:propertyId:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_propertyId
- The ID of the asset property.
$sel:assetId:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_assetId
- The ID of the asset.
$sel:maxResults:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_maxResults
- The maximum number of results to return for each paginated request.
Default: 100
$sel:aggregateTypes:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_aggregateTypes
- The data aggregating function.
$sel:resolution:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_resolution
- The time interval over which to aggregate data.
$sel:startDate:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_startDate
- The exclusive start of the range from which to query historical data,
expressed in seconds in Unix epoch time.
$sel:endDate:GetAssetPropertyAggregates'
, getAssetPropertyAggregates_endDate
- The inclusive end of the range from which to query historical data,
expressed in seconds in Unix epoch time.
Request Lenses
getAssetPropertyAggregates_qualities :: Lens' GetAssetPropertyAggregates (Maybe (NonEmpty Quality)) Source #
The quality by which to filter asset data.
getAssetPropertyAggregates_timeOrdering :: Lens' GetAssetPropertyAggregates (Maybe TimeOrdering) Source #
The chronological sorting order of the requested information.
Default: ASCENDING
getAssetPropertyAggregates_propertyAlias :: Lens' GetAssetPropertyAggregates (Maybe Text) Source #
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.
getAssetPropertyAggregates_nextToken :: Lens' GetAssetPropertyAggregates (Maybe Text) Source #
The token to be used for the next set of paginated results.
getAssetPropertyAggregates_propertyId :: Lens' GetAssetPropertyAggregates (Maybe Text) Source #
The ID of the asset property.
getAssetPropertyAggregates_assetId :: Lens' GetAssetPropertyAggregates (Maybe Text) Source #
The ID of the asset.
getAssetPropertyAggregates_maxResults :: Lens' GetAssetPropertyAggregates (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
Default: 100
getAssetPropertyAggregates_aggregateTypes :: Lens' GetAssetPropertyAggregates (NonEmpty AggregateType) Source #
The data aggregating function.
getAssetPropertyAggregates_resolution :: Lens' GetAssetPropertyAggregates Text Source #
The time interval over which to aggregate data.
getAssetPropertyAggregates_startDate :: Lens' GetAssetPropertyAggregates UTCTime Source #
The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.
getAssetPropertyAggregates_endDate :: Lens' GetAssetPropertyAggregates UTCTime Source #
The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.
Destructuring the Response
data GetAssetPropertyAggregatesResponse Source #
See: newGetAssetPropertyAggregatesResponse
smart constructor.
GetAssetPropertyAggregatesResponse' | |
|
Instances
newGetAssetPropertyAggregatesResponse Source #
Create a value of GetAssetPropertyAggregatesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:GetAssetPropertyAggregates'
, getAssetPropertyAggregatesResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:GetAssetPropertyAggregatesResponse'
, getAssetPropertyAggregatesResponse_httpStatus
- The response's http status code.
$sel:aggregatedValues:GetAssetPropertyAggregatesResponse'
, getAssetPropertyAggregatesResponse_aggregatedValues
- The requested aggregated values.
Response Lenses
getAssetPropertyAggregatesResponse_nextToken :: Lens' GetAssetPropertyAggregatesResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
getAssetPropertyAggregatesResponse_httpStatus :: Lens' GetAssetPropertyAggregatesResponse Int Source #
The response's http status code.
getAssetPropertyAggregatesResponse_aggregatedValues :: Lens' GetAssetPropertyAggregatesResponse [AggregatedValue] Source #
The requested aggregated values.