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 |
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
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.
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
- data BatchPutAssetPropertyValue = BatchPutAssetPropertyValue' {}
- newBatchPutAssetPropertyValue :: BatchPutAssetPropertyValue
- batchPutAssetPropertyValue_entries :: Lens' BatchPutAssetPropertyValue [PutAssetPropertyValueEntry]
- data BatchPutAssetPropertyValueResponse = BatchPutAssetPropertyValueResponse' {}
- newBatchPutAssetPropertyValueResponse :: Int -> BatchPutAssetPropertyValueResponse
- batchPutAssetPropertyValueResponse_httpStatus :: Lens' BatchPutAssetPropertyValueResponse Int
- batchPutAssetPropertyValueResponse_errorEntries :: Lens' BatchPutAssetPropertyValueResponse [BatchPutAssetPropertyErrorEntry]
Creating a Request
data BatchPutAssetPropertyValue Source #
See: newBatchPutAssetPropertyValue
smart constructor.
BatchPutAssetPropertyValue' | |
|
Instances
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 #
See: newBatchPutAssetPropertyValueResponse
smart constructor.
BatchPutAssetPropertyValueResponse' | |
|
Instances
Eq BatchPutAssetPropertyValueResponse Source # | |
Read BatchPutAssetPropertyValueResponse Source # | |
Show BatchPutAssetPropertyValueResponse Source # | |
Generic BatchPutAssetPropertyValueResponse Source # | |
NFData BatchPutAssetPropertyValueResponse Source # | |
Defined in Amazonka.IoTSiteWise.BatchPutAssetPropertyValue rnf :: BatchPutAssetPropertyValueResponse -> () # | |
type Rep BatchPutAssetPropertyValueResponse Source # | |
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_httpStatus :: Lens' BatchPutAssetPropertyValueResponse Int Source #
The response's http status code.
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.