Hello,
I receive following error message. I find no sample code or good documentation. so maybe someone knows how to correct my shortened code.
Microsoft.Azure.ApplicationInsights.Query.Models.ErrorResponse
Code=PathNotFoundError, Message=The requested path does not exist
Source:
private GetMetrics()
{
var appId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
var apiKey = "xxxxxxxxxxxxxxxxuxxxxxxxxxxxxxxxxxxxxxx";
var baseUrl = new Uri("https://api.applicationinsights.io");
// var baseUrl = new Uri("https://api.applicationinsights.io/");
// var baseUrl = new Uri("https://api.applicationinsights.io/v1");
// var baseUrl = new Uri("https://api.applicationinsights.io/v1/");
var creds = new ApiKeyClientCredentials(apiKey);
using (var client = new ApplicationInsightsDataClient(baseUrl, creds))
{
**_var results = await client.Events.GetExceptionEventsAsync(appId); // -> PathNotFoundError-Exception_**
// ...
// work with results
// ...
}
}
THX a lot
Thank you for your feedback. Tagging and routing to the team best able to assist.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azmonapplicationinsights.