Could anyone help me build an SWSQL query to count the number of nodes backed up vs not backed up?
I'm hoping to build a new modern dashboard proportional widget, much like the current pie-chart one on the NCM Status page.
I've had a play using the SQL from the report, listing the devices backup status, but I'm not sure how to adapt this to just show the count, rather than a list of each node.
Something like
from
node custom property 'site=siteA'
count device status='backedup'
count device status='not backed up'
I've tried to find the appropriate schema but i'm a bit of a noob when it comes to SQL, as you can probably tell 
Thanks!