Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

Variables in Custom SWQL do not Reference Interface in Current View

$
0
0

I am trying to create a custom chart on an interface details view.  The data source for this chart is the following custom SWQL query:

 

SELECT

DateTrunc('minute',DateTime) AS Time,

SUM(InAveragebps) AS InAveragebps,

SUM(OutAveragebps) AS OutAveragebps,

ASIC

FROM

Orion.NPM.InterfaceTraffic IT

INNER JOIN

(SELECT InterfaceID,I.CustomProperties.ASIC FROM Orion.NPM.Interfaces I WHERE InterfaceID = ${InterfaceID}) AS A

ON IT.InterfaceID = A.InterfaceID

WHERE

DateTime > GetUtcDate() - 7

GROUP BY ASIC,DateTrunc('minute',DateTime)

 

I would expect for ${InterfaceID} to resolve to the interface ID of the interface in the current view, however, it does not.  Instead I get results for multiple interfaces on different devices.  Is there a different variable that I need to reference?


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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