Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure应用程序洞察-按部分时间戳汇总_Azure_Azure Application Insights - Fatal编程技术网

Azure应用程序洞察-按部分时间戳汇总

Azure应用程序洞察-按部分时间戳汇总,azure,azure-application-insights,Azure,Azure Application Insights,如何仅按年、月、日和小时汇总记录?在Application Insights Analytics中: 按小时计算: requests | summarize count() by bin(timestamp, 1h) 白天: requests | summarize count() by bin(timestamp, 1d) 按月 requests | summarize count() by bin(datepart("Month", timestamp), 1)

如何仅按年、月、日和小时汇总记录?

在Application Insights Analytics中:

按小时计算:

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(timestamp)、startofweek、startofmonth和startofyear。它应该更容易使用。