amazonka-iotsitewise-2.0: Amazon IoT SiteWise SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Description

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 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.

This operation returns paginated results.

Synopsis

Creating a Request

data GetAssetPropertyAggregates Source #

See: newGetAssetPropertyAggregates smart constructor.

Constructors

GetAssetPropertyAggregates' 

Fields

Instances

Instances details
ToHeaders GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

ToPath GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

ToQuery GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

AWSPager GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

AWSRequest GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Generic GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Associated Types

type Rep GetAssetPropertyAggregates :: Type -> Type #

Read GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Show GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

NFData GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Eq GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Hashable GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type AWSResponse GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type Rep GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type Rep GetAssetPropertyAggregates = D1 ('MetaData "GetAssetPropertyAggregates" "Amazonka.IoTSiteWise.GetAssetPropertyAggregates" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "GetAssetPropertyAggregates'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "propertyAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "propertyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "qualities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Quality))) :*: (S1 ('MetaSel ('Just "timeOrdering") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeOrdering)) :*: S1 ('MetaSel ('Just "aggregateTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty AggregateType)))) :*: (S1 ('MetaSel ('Just "resolution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "startDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "endDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX))))))

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:

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

GetAssetPropertyAggregates, getAssetPropertyAggregates_nextToken - The token to be used for the next set of paginated results.

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.

GetAssetPropertyAggregates, getAssetPropertyAggregates_propertyId - The ID of the asset property.

GetAssetPropertyAggregates, getAssetPropertyAggregates_qualities - The quality by which to filter asset data.

GetAssetPropertyAggregates, getAssetPropertyAggregates_timeOrdering - The chronological sorting order of the requested information.

Default: ASCENDING

GetAssetPropertyAggregates, getAssetPropertyAggregates_aggregateTypes - The data aggregating function.

GetAssetPropertyAggregates, getAssetPropertyAggregates_resolution - The time interval over which to aggregate data.

GetAssetPropertyAggregates, getAssetPropertyAggregates_startDate - The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.

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_maxResults :: Lens' GetAssetPropertyAggregates (Maybe Natural) Source #

The maximum number of results to return for each paginated request.

Default: 100

getAssetPropertyAggregates_nextToken :: Lens' GetAssetPropertyAggregates (Maybe Text) Source #

The token to be used for the next set of paginated results.

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_timeOrdering :: Lens' GetAssetPropertyAggregates (Maybe TimeOrdering) Source #

The chronological sorting order of the requested information.

Default: ASCENDING

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 #

Constructors

GetAssetPropertyAggregatesResponse' 

Fields

Instances

Instances details
Generic GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Associated Types

type Rep GetAssetPropertyAggregatesResponse :: Type -> Type #

Read GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Show GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

NFData GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Eq GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type Rep GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type Rep GetAssetPropertyAggregatesResponse = D1 ('MetaData "GetAssetPropertyAggregatesResponse" "Amazonka.IoTSiteWise.GetAssetPropertyAggregates" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "GetAssetPropertyAggregatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "aggregatedValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AggregatedValue]))))

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:

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.

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.