diff --git a/CHANGELOG.md b/CHANGELOG.md index c71867d7..61c8e2af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Enhancement: - Added `Publish-VersionHealth` to return the version health from the SoS Health Summary JSON data. - Updated `Invoke-VcfHealthReport` to include the version health using the `Publish-VersionHealth` cmdlet. - Added `Show-ReportingOutput` cmdlet to format output to the console when `PowerVCF` is not installed. [GH-121](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-reporting/pull/121) +- Updated `Publish-VsanHealth` to include the results for capacity utilization and the active resysc of objects. Refactor: diff --git a/VMware.CloudFoundation.Reporting.psd1 b/VMware.CloudFoundation.Reporting.psd1 index a06c5c38..8fc16525 100644 --- a/VMware.CloudFoundation.Reporting.psd1 +++ b/VMware.CloudFoundation.Reporting.psd1 @@ -12,7 +12,7 @@ RootModule = '.\VMware.CloudFoundation.Reporting.psm1' # Version number of this module. - ModuleVersion = '2.0.0.1008' + ModuleVersion = '2.0.0.1009' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1 index 5e6bc9bd..45ecc4a4 100644 --- a/VMware.CloudFoundation.Reporting.psm1 +++ b/VMware.CloudFoundation.Reporting.psm1 @@ -2076,7 +2076,7 @@ Function Publish-VsanHealth { Write-Warning 'vSAN data not found in the JSON file: SKIPPED' } else { - # vSAN Cluster Health Status + # Cluster Health Status $jsonInputData = $targetContent.vSAN.'Cluster vSAN Status' # Extract Data from the provided SOS JSON if ($PsBoundParameters.ContainsKey("failureOnly")) { $outputObject = Read-JsonElement -inputData $jsonInputData -failureOnly # Call Function to Structure the Data for Report Output @@ -2094,6 +2094,24 @@ Function Publish-VsanHealth { } $customObject += $outputObject # Adding individual component to main customObject + # Cluster Capacity Utilization + $jsonInputData = $targetContent.vSAN.'vSAN Capacity Utilization' # Extract Data from the provided SOS JSON + if ($PsBoundParameters.ContainsKey("failureOnly")) { + $outputObject = Read-JsonElement -inputData $jsonInputData -failureOnly # Call Function to Structure the Data for Report Output + } else { + $outputObject = Read-JsonElement -inputData $jsonInputData # Call Function to Structure the Data for Report Output + } + $customObject += $outputObject # Adding individual component to main customObject + + # Cluster Active ReSync Objects + $jsonInputData = $targetContent.vSAN.'Active ReSync Objects' # Extract Data from the provided SOS JSON + if ($PsBoundParameters.ContainsKey("failureOnly")) { + $outputObject = Read-JsonElement -inputData $jsonInputData -failureOnly # Call Function to Structure the Data for Report Output + } else { + $outputObject = Read-JsonElement -inputData $jsonInputData # Call Function to Structure the Data for Report Output + } + $customObject += $outputObject # Adding individual component to main customObject + # Cluster Data Compression Status $jsonInputData = $targetContent.vSAN.'Cluster Data Compression Status' # Extract Data from the provided SOS JSON if ($PsBoundParameters.ContainsKey("failureOnly")) {