Is there an TSI-Endpoint that provides the most recent message of a time series that arrived from e.g. an iot-hub? In my current situation I have to poll a certain period of time (for example now to 30 seconds in the past) and I wonder if there is a better way to do this?
Asked
Active
Viewed 155 times
2
-
1For this particular use case you might be better off just peeking at the latest message using the event hub endpoint? – kartben Jan 23 '20 at 17:38
-
Thanks - this approach needed a little bit of effort but in the end fitted my needs exactly! – codlix Jan 31 '20 at 18:11
-
Awesome, great to hear! :) – kartben Feb 01 '20 at 05:51
1 Answers
1
Unfortunately there is no endpoint that lets you query only the last event. You can use GetEvents and query over the last 30 seconds, like you said, or peek the last message from the Event Hub/IoT Hub.

Shreya Sharma
- 306
- 1
- 3