How can I create a swql/sql report that shows data in 15 mins interval?I can create this report on a chart but I need it to be replicated in a web report/report writer
So you would use the average() and max() functions as normal, but in the group by section you include your downsample. Something like
select top 100 downsample(cpu.DateTime ,'00:15:00') as [15m_Block] , cpu.nodeid , avg( cpu.AvgLoad ) as [Average] , max( cpu.AvgLoad ) as [max]from orion.CPULoad cpugroup by cpu.NodeID , downsample(cpu.DateTime,'00:15:00')
You can use the DOWNSAMPLE function. (under "Date/Time" functions.)
Hi. I’ve already used the downsample and this is exactly what Im looking for, although I also need to get the avg/max every 15mins of my data as well
Exactly what I needed. Thanks for the big help!