GetEvents Continuation Token not returned

Anders Fredborg 1 Reputation point
2021-04-06T09:18:16.587+00:00

Hi,

I have downloaded the sample code for accessing TSI API using C# from here: https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/gen2-sample/csharp-tsi-gen2-sample

I have customized the code, so it uses our own TSI instance.

If use the Code provided, to retrieve all events for a given period (That holds more than 20.000 Events/Datapoints) and I set the GetEvents Query to Take 1000, I would expect TSI to respond with a ContinuationToken that is not null, so I may keep querying for new batches using the Token.

I am experiencing a different behavior. If I set the Take parameter to 1000, it only responds with 1000 events, and the ContinueationToken is Null? As explained in your documentation here: https://learn.microsoft.com/en-us/rest/api/time-series-insights/dataaccessgen2/query/execute#querygeteventspage2, TSI is supposed to return a ContinuationToken and an approximatly progress of the query.

Can you please help?

84750-image.png

Azure Time Series Insights
Azure Time Series Insights
An Azure internet of things (IoT) analytics platform to monitor, analyze, and visualize industrial IoT analytics data at scale.
78 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,271 Reputation points
    2021-04-06T21:19:14.94+00:00

    Hello @Anders Fredborg Thanks for posting this query, have you come across the below document section on ResultPage Progress?

    Approximate progress of the query in percentage. It can be between 0 and 100. When the continuation token in the response is null, the progress is expected to be 100.

    QueryResultPage

    84930-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.