3
年、月、日、時にレコードを集計するにはどうすればよいですか?アプリケーションの洞察AnalyticsでAzureアプリケーションの洞察 - タイムスタンプの一部で要約する
年、月、日、時にレコードを集計するにはどうすればよいですか?アプリケーションの洞察AnalyticsでAzureアプリケーションの洞察 - タイムスタンプの一部で要約する
:日によって
requests
| summarize count() by bin(timestamp, 1h)
:時間によって
requests
| summarize count() by bin(timestamp, 1d)
月
requests
| summarize count() by bin(datepart("Month", timestamp), 1)
ことで年間
ことでrequests
| summarize count() by bin(datepart("Year", timestamp), 1)
これにも別名があると言いたいだけです:startofday(タイムスタンプ)、startofweek、startofmonthおよびstartofyear。それは少し使いやすくする必要があります。 –
[Application Insights Analytics](https://docs.microsoft.com/en-us/azure/application-insights/app-insights-analytics)を使用していますか?もしそうなら、[datepart](https://docs.microsoft.com/en-us/azure/application-insights/app-insights-analytics-reference#datepart)を試してください –