Framework/Models/AzSdkEvent.ps1

Set-StrictMode -Version Latest
class AzSdkRootEvent
{
    static [string] $CustomMessage = "AzSdk.CustomMessage"; 
    
    static [string] $GenerateRunIdentifier = "AzSdk.GenerateRunIdentifier"; #Creates a timestamp and publish, Initialize listeners
    static [string] $UnsupportedResources = "AzSdk.UnsupportedResources"; 

    #Command level event
    static [string] $CommandStarted = "AzSdk.Command.Started"; #Initialize listeners #Command execution started
    static [string] $CommandCompleted = "AzSdk.Command.Completed"; #Cleanup listeners #Command execution completed
    static [string] $CommandError = "AzSdk.Command.Error"; 
    static [string] $CommandProcessing = "AzSdk.Command.Processing"; 
}

class AzureContext
{
    [string] $SubscriptionId = "" 
    [string] $SubscriptionName = ""     
}

class AzSdkRootEventArgument
{   
    [AzureContext] $Context;
    [MessageData[]] $Messages = @();
    hidden [System.Management.Automation.ErrorRecord] $ExceptionMessage
}