manifests/collectors/Monitor/AppInsightsWorkItems.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Monitor/AppInsightsWorkItems.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 = @( 'AZSC/ARMChild/AppInsightsWorkItems' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ai = $Resources | Where-Object { $_.id -eq $1.PARENTID } | Select-Object -First 1 $sub1 = $SUB | Where-Object { $_.Id -eq $1.subscriptionId } $ResUCount = 1 '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'App Insights Name' Expression = '$ai.NAME' } @{ Name = 'Subscription' Expression = '$sub1.Name' } @{ Name = 'Resource Group' Expression = '$ai.RESOURCEGROUP' } @{ Name = 'Config ID' Expression = 'if ($1.Id) { $1.Id } else { ''N/A'' }' } @{ Name = 'Config Display Name' Expression = 'if ($1.ConfigDisplayName) { $1.ConfigDisplayName } else { ''N/A'' }' } @{ Name = 'Is Default' Expression = 'if ($1.IsDefault) { ''Yes'' } else { ''No'' }' } @{ Name = 'Config Properties' Expression = 'if ($1.ConfigProperties) { $1.ConfigProperties } else { ''N/A'' }' } @{ Name = 'Resource U' Expression = '$ResUCount' } @{ Name = 'Tag Name' Expression = '''''' } @{ Name = 'Tag Value' Expression = '''''' } ) Export = @{ WorksheetName = 'App Insights Work Items' TableNamePrefix = 'AIWorkItemsTable_' Columns = @( 'App Insights Name' 'Subscription' 'Resource Group' 'Config ID' 'Config Display Name' 'Is Default' 'Config Properties' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @() } SourceCollector = 'Modules/Public/InventoryModules/Monitor/AppInsightsWorkItems.ps1' } |