Product: PowerShell Universal
Version: 1.5.16
Hi all,
Was wondering how I would go about configuring how the UDChartJSMonitor graphs are displayed on the dashboard.
Currently I have the following code to query the amount of active RDUserSessions on a certain host;
New-UDChartJSMonitor -LoadData {
$HostServer = $RDServer.CN
$ActiveSessionCount = Invoke-RestMethod -Uri "https://notlocalhost:1234/GetActiveSessionCount/$HostServer"
$ActiveSessionCount | Out-UDChartJSMonitorData
} -Labels 'Active UserSessions' -ChartBackgroundColor "#7db800" -RefreshInterval 60
Which results in the following graph;
Obviously, showing decimals isn’t really that useful here - same as only showing 7 to 9…
How would I go about showing from 0 to some set number, without any decimals, statically?
Thanks in advance!