Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 21093

Re: Help with SWQL - Day of the week?

$
0
0

Hi Craig,

the example I gave is working SWQL query based on SWIS built in functions. As far as I remember both DayDiff and DateTrunc functions should be available since NPM 10.5 ( or 10.6, not 100% sure now).

 

This can be used also in the filter conditions.

Example for getting the max cpuload:

Select c.node.caption as [caption], max(MaxLoad) as [Max] from orion.cpuload c where DayDiff(DateTrunc('week', datetime ), datetime ) in (0,1,2,3,4) group by c.node.caption

 

Regards,

Honza


Viewing all articles
Browse latest Browse all 21093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>