Hi, I got some questions about, how we want to exclude the unmanaged nodes being calculated for availability percentage. Kindly need your help.
SELECT 100 * SUM (CASE WHEN Status = 1 THEN 1 ELSE 0 END) / COUNT(*) AS Available_Percentage
FROM Orion.Nodes n
WHERE n.CustomProperties.Region IN ('Central - Network', 'East Coast - Network', 'Southern - Network', 'Northern - Network')

