manifests/collectors/Management/DevOpsProjects.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Management/DevOpsProjects.ps1 (AB#5660). # Field expressions are copied verbatim from the original collector and evaluate in an # equivalent scope -- see docs/design/decisions/declarative-collectors.md. # Review before trusting; regenerate rather than hand-patch if the source collector changes. # @{ ResourceTypes = @( 'devops/projects' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.properties $lastUpdate = if ($data.PSObject.Properties.Name -contains 'lastUpdateTime' -and $data.lastUpdateTime) { ([datetime]$data.lastUpdateTime).ToString('MM/dd/yyyy HH:mm') } else { $null } '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Organization' Expression = '$1.organization' } @{ Name = 'Project Name' Expression = '$1.name' } @{ Name = 'Description' Expression = '$data.description' } @{ Name = 'State' Expression = '$data.state' } @{ Name = 'Visibility' Expression = '$data.visibility' } @{ Name = 'Revision' Expression = '$data.revision' } @{ Name = 'Last Updated' Expression = '$lastUpdate' } @{ Name = 'URL' Expression = '$data.url' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'ADO Projects' TableNamePrefix = 'ADOProjectsTable_' Columns = @( 'Organization' 'Project Name' 'Description' 'State' 'Visibility' 'Revision' 'Last Updated' 'URL' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @() } SourceCollector = 'Modules/Public/InventoryModules/Management/DevOpsProjects.ps1' } |