Product: PowerShell Universal
Version: 1.5.8
Looking for advice on specifying diff. colors for multiple metrics in New-UDChartJSMonitor
Following grabs the first color “blue” for all four metrics.
New-UDChartJSMonitor -LoadData {
Out-UDChartJSMonitorData -Data @(
(Measure-Command {Invoke-WebRequest -Uri http://Server1/Service.svc}).TotalSeconds
(Measure-Command {Invoke-WebRequest -Uri http://Server2/Service.svc}).TotalSeconds
(Measure-Command {Invoke-WebRequest -Uri http://Server3/Service.svc}).TotalSeconds
(Measure-Command {Invoke-WebRequest -Uri http://Server4/Service.svc}).TotalSeconds
)
} -Label @(“Server1”, “Server2”, “Server3”, “Server4”) -ChartBackgroundColor @(“Blue”, “Green”, “#FCF3CF”, “#D4EFDF”) -RefreshInterval 10