libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Read GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Show 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 #

NFData GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Hashable 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

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

type Rep GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

type Rep GetAssetPropertyAggregates = D1 ('MetaData "GetAssetPropertyAggregates" "Amazonka.IoTSiteWise.GetAssetPropertyAggregates" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "GetAssetPropertyAggregates'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "qualities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Quality))) :*: S1 ('MetaSel ('Just "timeOrdering") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeOrdering))) :*: (S1 ('MetaSel ('Just "propertyAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "propertyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: 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))))))
type AWSResponse GetAssetPropertyAggregates Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

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

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

Default: 100

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
Eq GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Read GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Show GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Generic GetAssetPropertyAggregatesResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyAggregates

Associated Types

type Rep GetAssetPropertyAggregatesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" '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:

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