< Back

Format-CJStatsFromResults

Mon Jan 13, 2020 2:28 am

NAME Format-CJStatsFromResults



SYNOPSIS

Takes the $Results object and prints stats about timing, skipped and errors.





SYNTAX

Format-CJStatsFromResults [-Results] <Object> [[-SuccessGroupPropertyName] <String>] [[-SkippedGroupPropertyName]

<String>] [[-ErrorsGroupPropertyName] <String>] [<CommonParameters>]





DESCRIPTION

Takes the $Results object and prints stats about timing, skipped and errors.





PARAMETERS

-Results <Object>

Returns the input object



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-SuccessGroupPropertyName <String>



Required? false

Position? 2

Default value Status

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SkippedGroupPropertyName <String>



Required? false

Position? 3

Default value SkipReason

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ErrorsGroupPropertyName <String>



Required? false

Position? 4

Default value Error

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

returns $Results





NOTES





AUTHOR: Cyrus Jamula

LASTEDIT: March 16th, 2018



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$result = [PSCustomObject]@{



PSTypeName = 'PT.Result';

input = @();

success = @();

skipped = @();

errors = @();

timing = $null;

}

Format-StatsFromResults -Results $result











RELATED LINKS

Invoke-ScriptBlockOverArrays

Save-ResultsToFiles