azure - 使用 Azure Application Insights REST API (https ://dev. applicationinsights.io) 读取自定义事件/指标

标签 azure azure-application-insights

我们的服务将大量自定义事件和指标写入 App Insights。 使用人工智能门户,我们可以进行复杂的查询并查看漂亮的图表,但我想从门户外部访问数据。 Azure Application Insights REST API 页面 ( https://dev.applicationinsights.io ) 声称这些 API 可用于执行此类任务,但我无法使它们工作 - 同样,我想查询自定义事件和指标,而不是标准事件和指标。 有人有例子吗? 例如,这是我们的一个查询:

customEvents
| where name startswith "Monitor.Xxxxxxx"
| summarize count() by bin(timestamp, 1min)
| order by timestamp desc

最佳答案

原来我使用了错误的AppId/Key;一旦我插入正确的,我就可以使用 API Explorer。

关于azure - 使用 Azure Application Insights REST API (https ://dev. applicationinsights.io) 读取自定义事件/指标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43150973/

相关文章:

azure - 禁用在发布设置上将诊断数据发送到应用程序见解

azure - 如何在 Azure Function 中使用 TelemetryConfiguration 的依赖项注入(inject)

c# - 如何通过代码启用EnableSqlCommandTextInstrumentation?

java - Azure key 保管库。无法使用相同的 key 和算法解密返回的值

visual-studio - 从 Sql 数据库到 Azure 存储模拟器

c# - 针对 Windows Phone 8 开发并使用 Azure 的 Google 身份验证问题

azure-application-insights - 使用始终返回 0 的 Kusto 查询语言返回十进制值

azure - 将 Azure Application Insights 数据发送到事件中心

WCF 命名管道和 Azure Web 角色

azure - Microsoft.WindowsAzure.Storage.StorageException : The remote server returned an error: (403)