There was a typo in the script. This line
$hourMax = $_.Group | Where {$_.MetricId -eq "cpu.usagemhz.maximum"} |
should have been like this
$hourMax += $_.Group | Where {$_.MetricId -eq "cpu.usagemhz.maximum"} |
The script above has been corrected.
There was a typo in the script. This line
$hourMax = $_.Group | Where {$_.MetricId -eq "cpu.usagemhz.maximum"} |
should have been like this
$hourMax += $_.Group | Where {$_.MetricId -eq "cpu.usagemhz.maximum"} |
The script above has been corrected.