I currently have a script that gathers all the information of a job and pushes it to Discord dependant on success/failure
Currently I have an issue when accessing
Code: Select all
Veeam.Backup.Model.CBottleneckInfo.Bottleneck
My current code contains:
Code: Select all
$session.GetTaskSessions()[0].progress.BottleneckInfo.Bottleneck
Am I possibly accessing the wrong object for this?
Log when printing
Code: Select all
$session.GetTaskSessions()[0].progress.BottleneckInfo.Bottleneck
However in the GUI:
Would appreciate any thoughts or feedback.
Edit: My $session variable is obtained by passing SessionID to Get-VBRSessionInfo
Code: Select all
$session = (Get-VBRSessionInfo -SessionId $id -JobType $jobType).Session