Skip to content

Commit

Permalink
Improve chart
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Sep 18, 2022
1 parent c153524 commit 00cab08
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Src/Private/Get-AbrVbrBackupjob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,17 @@ function Get-AbrVbrBackupjob {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
try {
$TapeJobsResult = (Get-VBRTapeJob).LastResult
$BackupJobResult = $Bkjobs.info.LatestStatus
$sampleData = ($BackupJobResult + $TapeJobsResult) | Group-Object
$Alljobs = @()
if ($Bkjobs.info.LatestStatus) {
$Alljobs += $Bkjobs.info.LatestStatus
}
if ((Get-VBRTapeJob -ErrorAction SilentlyContinue).LastResult) {
$Alljobs += (Get-VBRTapeJob).LastResult
}
if ((Get-VSBJob -ErrorAction SilentlyContinue).GetLastResult()) {
$Alljobs += (Get-VSBJob).GetLastResult()
}
$sampleData = $Alljobs | Group-Object
$exampleChart = New-Chart -Name BackupJobs -Width 600 -Height 400

$addChartAreaParams = @{
Expand Down

0 comments on commit 00cab08

Please sign in to comment.