Write data to Time Series Insights Gen2

193 views Asked by At

Is there a way to programmatically write data to Time Series Insights Gen2?

In our case we regularily compute values based on the raw data. The computation requires more logic than simply applying aggregates to values of a single time series.

I want to re-ingest the result of the computation and it's timestamp to TSI so i can query it along with the raw data.

Is the only way to achieve this by sending an event with the computation result to IoT Hub or Event Hub the same way it was for Gen1 as seen here or am i missing something?

1

There are 1 answers

2
asergaz On BEST ANSWER

It still stands true for Gen2 that the only way to add data to TSI is through an EventHub or IoTHub - see: https://learn.microsoft.com/en-us/azure/time-series-insights/concepts-streaming-ingestion-event-sources

Please add a new feature request here with your scenario details so others can vote and we prioritize other ways to ingest data differently than through IoT Hub or Event Hub.

For your scenario though you can send the result of the computation to your IoT Hub or Event Hub via HTTP --both services have an HTTP endpoint-- but be aware that it's not advisable to mix historical data with real-time data, so if you do this you should do the calculation as soon as possible -- within the same day as the original event or sooner.