I have the JSON Request for Time Series Insights REST API as follows:
JObject contentInputPayload = new JObject(
new JProperty("top", new JObject(
new JProperty("sort", new JArray(new JObject(
new JProperty("input", new JObject(
new JProperty("builtInProperty", "$ts")
)),
new JProperty("order", "Asc")
))),
new JProperty("count", getTelemetry.RequestedEventCount)
)),
getPredicateSingle(getTelemetry.PropertyName, getTelemetry.PropertyValue),
new JProperty("searchSpan", new JObject(
new JProperty("from", Convert.ToDateTime(getTelemetry.FromDateTime)),
new JProperty("to", Convert.ToDateTime(getTelemetry.ToDateTime)))));
I can limit the number of events using the count property. If I leave it blank I get a 400 Bad Request. How can I request all events within that timeframe?