question

D3nic3 avatar image
0 Votes"
D3nic3 asked SatishBoddu-MSFT commented

Time Series Insights API 'aggregates' is not supported for environment '....'

Hi,

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, but when I try to get the data I get the following error:

112094-error-in-webapp.png

When trying this is postman I get the following:

112066-api-call.png
112115-error-api-call.png

Because of the error this is what I see in my webapp:

112114-image.png

I don't know exactly what I need to do to fix this problem so I'm hoping someone can help me with this problem.


azure-time-series-insights
api-call.png (75.4 KiB)
error-api-call.png (79.7 KiB)
image.png (26.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @D3nic3 were you referring to or using any of the sample templates?

Is your Environment Gen 2 or Gen1?

Would like to see your code snippet over here... do you have your pubic Github repo to share with us?

https://tsiclientsample.azurewebsites.net/

0 Votes 0 ·
SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered D3nic3 commented

Hello @D3nic3


If you are using Gen2, then the below sample is useful.

this is an example of how to use the SDK with a Gen2 (aka PAYG) environment

https://tsiclientsample.azurewebsites.net/withplatform/PAYG.html

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your fast reply. I am using Gen2 and because of that was using the wrong example. The example you send me worked for me. Thanks!

0 Votes 0 ·
KarthikShetty-2463 avatar image
0 Votes"
KarthikShetty-2463 answered SatishBoddu-MSFT commented

Hello @SatishBoddu-MSFT , @D3nic3

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, i need to shape json for sending data, Is there any document for shaping JSON
In Document link was Broken https://docs.microsoft.com/en-us/azure/time-series-insights/how-to-shape-json.


tsiClient.server.getTsqResults(response.accessToken, '10000000000000000'.env.timeseries.azure.com', linechartTsqExpressions.map(function(ae){return ae.toTsq()})).then(function(result){
console.log(result)
// result I am getting 400 response.




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @KarthikShetty-2463 Thanks for reporting this broken link.

Could you please create a new post on this issue?

Please tag my user ID in your new post, which will notify me immediately.

I am checking with my team on this broken link and your initial query?

0 Votes 0 ·