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

Description

Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API 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.

With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error.

For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the IoT SiteWise User Guide.

Synopsis

Creating a Request

data BatchPutAssetPropertyValue Source #

See: newBatchPutAssetPropertyValue smart constructor.

Constructors

BatchPutAssetPropertyValue' 

Fields

Instances

Instances details
Eq BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Read BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Show BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Generic BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Associated Types

type Rep BatchPutAssetPropertyValue :: Type -> Type #

NFData BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Hashable BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

ToJSON BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

AWSRequest BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

ToHeaders BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

ToPath BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

ToQuery BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

type Rep BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

type Rep BatchPutAssetPropertyValue = D1 ('MetaData "BatchPutAssetPropertyValue" "Amazonka.IoTSiteWise.BatchPutAssetPropertyValue" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "BatchPutAssetPropertyValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PutAssetPropertyValueEntry])))
type AWSResponse BatchPutAssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

newBatchPutAssetPropertyValue :: BatchPutAssetPropertyValue Source #

Create a value of BatchPutAssetPropertyValue 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:entries:BatchPutAssetPropertyValue', batchPutAssetPropertyValue_entries - The list of asset property value entries for the batch put request. You can specify up to 10 entries per request.

Request Lenses

batchPutAssetPropertyValue_entries :: Lens' BatchPutAssetPropertyValue [PutAssetPropertyValueEntry] Source #

The list of asset property value entries for the batch put request. You can specify up to 10 entries per request.

Destructuring the Response

data BatchPutAssetPropertyValueResponse Source #

Constructors

BatchPutAssetPropertyValueResponse' 

Fields

Instances

Instances details
Eq BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Read BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Show BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Generic BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

Associated Types

type Rep BatchPutAssetPropertyValueResponse :: Type -> Type #

NFData BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

type Rep BatchPutAssetPropertyValueResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue

type Rep BatchPutAssetPropertyValueResponse = D1 ('MetaData "BatchPutAssetPropertyValueResponse" "Amazonka.IoTSiteWise.BatchPutAssetPropertyValue" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "BatchPutAssetPropertyValueResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "errorEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchPutAssetPropertyErrorEntry])))

newBatchPutAssetPropertyValueResponse Source #

Create a value of BatchPutAssetPropertyValueResponse 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:httpStatus:BatchPutAssetPropertyValueResponse', batchPutAssetPropertyValueResponse_httpStatus - The response's http status code.

$sel:errorEntries:BatchPutAssetPropertyValueResponse', batchPutAssetPropertyValueResponse_errorEntries - A list of the errors (if any) associated with the batch put request. Each error entry contains the entryId of the entry that failed.

Response Lenses

batchPutAssetPropertyValueResponse_errorEntries :: Lens' BatchPutAssetPropertyValueResponse [BatchPutAssetPropertyErrorEntry] Source #

A list of the errors (if any) associated with the batch put request. Each error entry contains the entryId of the entry that failed.