I like the "Top 10 Nodes by Current Response Time" widget in the classical dashboard, but I can't figure out how to exactly replicate it on the modern dashboard.
I tried the 'hubble' approach to get the SWQL code and it works in SQWL Studio, but not when I copy and paste the exact code in the modern dashboard widget. It also looks different that what I was expecting.
I want to replicate this widget exactly (keeping the red 'No Response' at the top if a node is down, then sort by highest current response time).
This is what Hubble gave me (I made one page with just this one widget on it), but this doesn't look right to me.
SELECT TOP 10 Nodes.NodeID, Caption, GroupStatus, ResponseTime, PercentLoss, IP_Address, DNS, SysName, C.GUID, Nodes.Status, Nodes.InstanceSiteID as InstanceSiteId, os.Name as SiteName
FROM Orion.Nodes (nolock = true) Nodes
JOIN Orion.NodesCustomProperties (nolock=true) CP ON Nodes.NodeID = CP.NodeID and CP.InstanceSiteId = Nodes.InstanceSiteId
LEFT OUTER JOIN Orion.NodesWebCommunityStrings (nolock=true) C ON C.NodeID=Nodes.NodeID and C.InstanceSiteId = Nodes.InstanceSiteId
JOIN Orion.Sites (nolock=true) os ON os.SiteID = Nodes.InstanceSiteID
WHERE Nodes.Status NOT IN ('11', '9', '12')
ORDER BY (CASE WHEN ResponseTime<0 THEN 2147483647 ELSE ResponseTime END) DESC, PercentLoss DESC RETURN XML RAW</pre>I got kinda close when I tried to make it from scratch, but couldn't figure out the 'no response' part at the top or the Icon. SW sets the 'ResponseTime' value to -1 when a device is offline so when I sort by response time it will never be shown because technically it is at the end since -1ms is a lower value than 30ms.Just wondering if anyone else has successfully replicated this to a modern dashboard and wouldn't care to share the SQWL code.Thanks!