2017-03-31 48 views
1

我們的服務爲App Insights編寫了大量自定義事件和指標。 使用AI門戶,我們可以進行復雜的查詢並查看漂亮的圖表,但我想從門戶外部訪問數據。 Azure應用程序Insights REST API頁面(https://dev.applicationinsights.io)聲稱可以使用這些API來執行此類任務,但我無法使其工作 - 同樣我想查詢自定義事件和度量標準,而不是標準度量。 有沒有人有任何例子? 下面是一個例子我們查詢:使用Azure Application Insights REST API(https://dev.applicationinsights.io)閱讀自定義事件/指標

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

回答

0

原來我是使用了錯誤的AppId /關鍵;一旦我插入正確的,我可以使用API​​ Explorer。

相關問題