Returns the count of online switches. Useful when reconciling services in the Gradient MSP billing module.
Devices[?attributes.deviceType == 'switch'&& attributes.onlineStatus =='online'] |length(@)