- Newest
- Most votes
- Most comments
The IoT SiteWise rule action maps very directly to the BatchPutAssetPropertyValue API: https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html . So it is a single API call even if you have multiple entries and/or multiple rows (property values) per entry in that rule action. Up to 10 entries.
https://docs.aws.amazon.com/iot/latest/developerguide/iotsitewise-rule-action.html
When you send data to AWS IoT SiteWise with this action, your data must meet the requirements of the BatchPutAssetPropertyValue operation. For more information, see BatchPutAssetPropertyValue in the AWS IoT SiteWise API Reference.
It doesn't have to be the case that each sample in the message has a unique timestamp. They may or may not. It all depends on how your sensor data is collected and sent. If you have multiple values all with one timestamp, that's fine too.
Relevant content
- asked a year ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
Is there any way to log that BatchPutAssetPropertyValue? The documentation lists the error codes it might throw, but since I'm invoking that call from the Rule, would I capture them in the rule's "On Error" section?
I don't think you can directly the log the output of BatchPutAssetPropertyValue. Although I think the RuleExecution error gives very good information. More information than the HTTP error code: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/troubleshoot-rule.html#troubleshoot-rule-issues