Framework/Models/AzSKEvent.ps1
Set-StrictMode -Version Latest class AzSKRootEvent { static [string] $CustomMessage = "AzSK.CustomMessage"; static [string] $GenerateRunIdentifier = "AzSK.GenerateRunIdentifier"; static [string] $UnsupportedResources = "AzSK.UnsupportedResources"; static [string] $WriteCSV = "AzSK.WriteCSV"; static [string] $PublishCustomData = "AzSK.PublishCustomData" static [string] $WriteExcludedResources= "AzSK.WriteExcludedResources" #Command level event static [string] $CommandStarted = "AzSK.Command.Started"; static [string] $CommandCompleted = "AzSK.Command.Completed"; static [string] $CommandError = "AzSK.Command.Error"; static [string] $CommandProcessing = "AzSK.Command.Processing"; static [string] $PolicyMigrationCommandStarted = "AzSK.Command.PolicyMigrationStarted"; static [string] $PolicyMigrationCommandCompleted = "AzSK.Command.PolicyMigrationCompleted" } class OrganizationContext { [string] $OrganizationId = ""; [string] $OrganizationName = ""; [string] $Scope = ""; hidden [hashtable] $OrganizationMetadata = @{} } class AzSKRootEventArgument { [OrganizationContext] $OrganizationContext; [MessageData[]] $Messages = @(); hidden [System.Management.Automation.ErrorRecord] $ExceptionMessage } class CustomData { [string] $Name [PSObject] $Value } |