From c94413ea9c141395e4737d1ba7cda4d54bb64bb1 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Sat, 10 Dec 2022 10:24:51 -0500 Subject: [PATCH] feat(overview): add cluster host count (#46) Adds support for including the number of ESXi hosts per cluster in System Overview Report. Signed-off-by: Ryan Johnson --- VMware.CloudFoundation.Reporting.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1 index 82d3f94a..99f3039e 100644 --- a/VMware.CloudFoundation.Reporting.psm1 +++ b/VMware.CloudFoundation.Reporting.psm1 @@ -8213,9 +8213,10 @@ Function Request-ClusterOverview { $customObject | Add-Member -notepropertyname "Domain UUID" -notepropertyvalue $domain.id $customObject | Add-Member -notepropertyname "Cluster UUID" -notepropertyvalue $cluster.id } else { - $customObject | Add-Member -notepropertyname "Domain Name" -notepropertyvalue $domain.name + $customObject | Add-Member -notepropertyname "Domain Name" -notepropertyvalue $domain.name $customObject | Add-Member -notepropertyname "Cluster Name" -notepropertyvalue (Get-VCFCluster -id $cluster.id).name } + $customObject | Add-Member -notepropertyname "Total Hosts" -notepropertyvalue ((Get-VCFCluster -id $cluster.id).hosts | Measure-Object).Count $customObject | Add-Member -notepropertyname "Principal Storage" -notepropertyvalue (Get-VCFCluster -id $cluster.id).primaryDatastoreType $customObject | Add-Member -notepropertyname "Stretched Cluster" -notepropertyvalue (Get-VCFCluster -id $cluster.id).isStretched $allClusterObject += $customObject