Hi team,
I have created a dashboard for down interfaces using the below SQL query and the end results are showing as expected but i would like to add "DOWN TIME" like at what time the interface went down? Can someone help ?
select i.FullName as Interface, i.DetailsUrl as [_linkfor_Interface], '/Orion/images/StatusIcons/Small-' + StatusIcon as [_iconfor_Interface]
from orion.npm.Interfaces i
left join orion.AlertSuppression sup on (sup.entityuri = i.node.Uri and sup.SuppressFrom <= GETUTCDATE() and sup.SuppressUntil > GETUTCDATE()) or (sup.entityuri = i.Uri and sup.SuppressFrom <= GETUTCDATE() and sup.SuppressUntil > GETUTCDATE())
where i.status=2
and sup.EntityUri is null