首页 文章

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

提问于
浏览
1

我们的服务会将大量自定义事件和指标写入App Insights . 使用AI门户我们可以进行复杂的查询并查看漂亮的图表,但我想从门户外部访问数据 . 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

1 回答

  • 0

    事实证明我使用的是错误的AppId / Key;一旦我插入正确的,我就能使用API Explorer .

相关问题