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

Description

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

This operation returns paginated results.

Synopsis

Creating a Request

data GetAssetPropertyValueHistory Source #

See: newGetAssetPropertyValueHistory smart constructor.

Constructors

GetAssetPropertyValueHistory' 

Fields

Instances

Instances details
Eq GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Read GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Show GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Generic GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Associated Types

type Rep GetAssetPropertyValueHistory :: Type -> Type #

NFData GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Hashable GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

AWSPager GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

AWSRequest GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

ToHeaders GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

ToPath GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

ToQuery GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

type Rep GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

type Rep GetAssetPropertyValueHistory = D1 ('MetaData "GetAssetPropertyValueHistory" "Amazonka.IoTSiteWise.GetAssetPropertyValueHistory" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "GetAssetPropertyValueHistory'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "endDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: 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 "startDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: 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)))))))
type AWSResponse GetAssetPropertyValueHistory Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

newGetAssetPropertyValueHistory :: GetAssetPropertyValueHistory Source #

Create a value of GetAssetPropertyValueHistory 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:endDate:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_endDate - The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.

$sel:qualities:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_qualities - The quality by which to filter asset data.

$sel:timeOrdering:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_timeOrdering - The chronological sorting order of the requested information.

Default: ASCENDING

$sel:propertyAlias:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_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:startDate:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_startDate - The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.

$sel:nextToken:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_nextToken - The token to be used for the next set of paginated results.

$sel:propertyId:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_propertyId - The ID of the asset property.

$sel:assetId:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_assetId - The ID of the asset.

$sel:maxResults:GetAssetPropertyValueHistory', getAssetPropertyValueHistory_maxResults - The maximum number of results to return for each paginated request.

Default: 100

Request Lenses

getAssetPropertyValueHistory_endDate :: Lens' GetAssetPropertyValueHistory (Maybe UTCTime) Source #

The inclusive end of the range from which to query historical data, expressed in seconds in Unix epoch time.

getAssetPropertyValueHistory_timeOrdering :: Lens' GetAssetPropertyValueHistory (Maybe TimeOrdering) Source #

The chronological sorting order of the requested information.

Default: ASCENDING

getAssetPropertyValueHistory_propertyAlias :: Lens' GetAssetPropertyValueHistory (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.

getAssetPropertyValueHistory_startDate :: Lens' GetAssetPropertyValueHistory (Maybe UTCTime) Source #

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

getAssetPropertyValueHistory_nextToken :: Lens' GetAssetPropertyValueHistory (Maybe Text) Source #

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

getAssetPropertyValueHistory_maxResults :: Lens' GetAssetPropertyValueHistory (Maybe Natural) Source #

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

Default: 100

Destructuring the Response

data GetAssetPropertyValueHistoryResponse Source #

Constructors

GetAssetPropertyValueHistoryResponse' 

Fields

Instances

Instances details
Eq GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Read GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Show GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

Generic GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

NFData GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

type Rep GetAssetPropertyValueHistoryResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.GetAssetPropertyValueHistory

type Rep GetAssetPropertyValueHistoryResponse = D1 ('MetaData "GetAssetPropertyValueHistoryResponse" "Amazonka.IoTSiteWise.GetAssetPropertyValueHistory" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "GetAssetPropertyValueHistoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assetPropertyValueHistory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AssetPropertyValue]))))

newGetAssetPropertyValueHistoryResponse Source #

Create a value of GetAssetPropertyValueHistoryResponse 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:GetAssetPropertyValueHistory', getAssetPropertyValueHistoryResponse_nextToken - The token for the next set of results, or null if there are no additional results.

$sel:httpStatus:GetAssetPropertyValueHistoryResponse', getAssetPropertyValueHistoryResponse_httpStatus - The response's http status code.

$sel:assetPropertyValueHistory:GetAssetPropertyValueHistoryResponse', getAssetPropertyValueHistoryResponse_assetPropertyValueHistory - The asset property's value history.

Response Lenses

getAssetPropertyValueHistoryResponse_nextToken :: Lens' GetAssetPropertyValueHistoryResponse (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results.