2
我試圖在Application Insights Analytics中呈現兩個日期之間的差異,但時間跨度不是時間表的y軸支持的類型。在Google Analytics搜索語言中獲取總時間毫秒數
例子查詢:
customMetrics
| extend dateDiff = timestamp - (timestamp - 1m)
// my second date comes from customDimensions
| summarize max(dateDiff) by bin(timestamp, 10m)
| order by timestamp desc
| render timechart
我想我DateDiff的時間跨度轉換爲代表的毫秒數的整數,但我無法找到自己的文檔中的任何支持此功能。我基本上想要C#的TimeSpan.TotalMilliseconds()。