Skip to content

Operations

-Type gantt draws lanes (-X) with bars from -Start to -End, coloured by -GroupBy, labelled with -Value: backup windows, maintenance, on-call. -Type gauge shows the first row's -Y: -GaugeStyle Progress (default) as a progress arc, Ring as one ring per row, Grade as an arc coloured by -Thresholds (upper bounds, ascending) with a needle.

Backup windows (gantt)

Bars from -Start to -End per lane, coloured by -GroupBy.

$night = [datetime]'2026-11-04 21:00'
$jobs = foreach ($srv in 1..6) { foreach ($k in 0..2) { $s = $night.AddMinutes(20 * $srv + 70 * $k); [pscustomobject]@{ Server = 'srv-{0:00}' -f $srv; Start = $s; End = $s.AddMinutes(45 + 5 * $srv); Result = @('Success', 'Success', 'Warning', 'Failed')[($srv + $k) % 4] } } }
New-UDEChart -Data $jobs -Type gantt -X Server -Start Start -End End -GroupBy Result -Palette '#e53935', '#43a047', '#fb8c00' -Height 340px

Gauge with bands

New-UDEChart -Data @([pscustomobject]@{ SLA = 98.7 }) -Type gauge -Y SLA -Min 90 -Max 100 -GaugeStyle Grade -Format 'percent100:1' `
    -Thresholds @{ value = 95; color = '#e53935' }, @{ value = 99; color = '#fb8c00' }, @{ value = 100; color = '#43a047' } -Height 300px