Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Help converting SQL to SWIS

$
0
0
  • We are trying to convert the following query to SWIS and quite frankly having trouble finding examples that utilize joins like this.  We built the query using the Orion Report Writer.

 

  • Query:

 

SELECT  TOP 10000 Nodes.Caption AS NodeName,

Case InBandwidth

            When 0 Then 0

            Else (In_Averagebps/InBandwidth) * 100

            End AS Recv_Percent_Utilization,

Case OutBandwidth

            When 0 Then 0

            Else (Out_Averagebps/OutBandwidth) * 100

            End AS Xmit_Percent_Utilization,

Interfaces.Caption AS Interface_Caption,

InterfaceTraffic.DateTime AS DateTime,

Interfaces.InterfaceID AS InterfaceID

 

FROM

(Nodes INNER JOIN Interfaces ON (Nodes.NodeID = Interfaces.NodeID))  INNER JOIN InterfaceTraffic ON (Interfaces.InterfaceID = InterfaceTraffic.InterfaceID AND InterfaceTraffic.NodeID = Nodes.NodeID)

 

WHERE

( DateTime BETWEEN 43406.5833333333 AND 43407.625 )

AND 

(

  (Nodes.Caption LIKE 'rtr1.dc5024%') AND

  (Interfaces.Caption LIKE '%AT&T%') AND

  (Nodes.area = 'remote_distributioncenter_rdc')

)

 

 

  • It would be really nice to have a SWIS converter as our customers are requesting more and more to pull data from the Solarwinds API without having to write in the SWQL/SWIS langauge.

Viewing all articles
Browse latest Browse all 2677

Trending Articles



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