How to re-shape Data getting from Gen2 Device to make request tsiclient server getTsqResults using TSI javascript SDK.
Hi, @QuantumCache
I have a web application where I try to visualize the data I have in my Time Series Insights environment in a basic chart with the Azure Time Series Insights Javascript SDK same as above i got an input aggregate error.
I am using Gen2 Device I need to shape JSON Array for sending data.
Is there any document for shaping JSON which will support for input for tsqArray.
In Document link was Broken links
https://learn.microsoft.com/en-us/azure/time-series-insights/how-to-shape-json.
tsiClient.server.getTsqResults(response.accessToken, '10000000000000000'.env.timeseries.azure.com', tsqArray.map(function(ae){return ae.toTsq()})).then(function(result){
console.log(result)
// result I am getting 400 response.
[{"tsiError":{"error":{"code":"InvalidInput","message":"Values in a single time series ID '[\"14fcd53a-d3d1-f208-088c3c7d\"]' must match the time series ID properties '[site:String,iothub-connection-device-id:String,data.id:String]' defined for the environment.","innerError":{"code":"TimeSeriesIdValueMismatch"}}}}]