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?