Skip to content

Commit

Permalink
feat(overview): add cluster host count (#46)
Browse files Browse the repository at this point in the history
Adds support for including the number of ESXi hosts per cluster in System Overview Report.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
Ryan Johnson authored Dec 10, 2022
1 parent 34a88e5 commit c94413e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VMware.CloudFoundation.Reporting.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c94413e

Please sign in to comment.