- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Hi! Thanks for the information. I'm sorry you are experiencing an issue with the notification on a property of type metric.
We do support sending a notification when a metric property is updated (even if it is updated internally by SiteWise). I did a quick sanity check and was able to receive a notification for a computed metric property.
Can you confirm the following:
- You are seeing the metric property update in real-time (computed internally by SiteWise) via a GetAssetPropertyValue but are not receiving a notification for it?
- You are subscribed to the correct topic as returned from a call to DescribeAsset?
- The property notification is indeed enabled
You can't assume a metric value is available when the measurement's BatchPutAssetPropertyValue is sent - as it could take some time until the metric is computed.
Additionally:
Have you had a chance to check out our blog post? https://aws.amazon.com/blogs/iot/collecting-organizing-monitoring-and-analyzing-industrial-data-at-scale-using-aws-iot-sitewise-part-1/
We are curious to know about your use case with DynamoDB as well. Have you considered accessing the information directly from the API via a GetAssetPropertyValueHistory request?
Thanks for your time
Edited by: awsseanb on Feb 26, 2020 2:49 PM
Thanks for your response.
I'm happy to hear that a notification should be sent for Metrics that are updated internally by SiteWise. Likely I have something mis-configured somewhere. I will confirm the three points you've listed sometime today and report back.
As for my DynamoDB use case - I am experimenting at this point but we have an existing app that allows the user to see and step through an amount of IoT data for specific machines (For example, a selected 24-hour duration with data every 15 minutes for 40+ sensors). The user can step, or click along a timeline, to see how a machine is performing at any given time. I was interested in getting the SiteWise data in a similar form so this app could consume it.
I have accessed data via the GetAssetPropertyValueHistory request before but since that call only returns 1 property's data and I'm looking at showing 40+ properties (at a minimum) per timestamp in the app described above, that seemed like a lot of calls, manual aggregation, etc. Just thought that, assuming it wasn't too difficult, it might be more streamlined for now to get the data in a form that app was already consuming. I am fine learning that I am incorrect.
I have skimmed that blog post before but will take another look. Thanks!
Hello again.
I was able to spend a little time looking at this and found that the issue was that I had the Metric notifications set to fire once an hour instead of once every 5 minutes or so. Changing that caused things to perform as expected. Thanks for your assistance.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr