Fixes Hyper-V Inspector disk metrics bug

Changed disk metric names used by Hyper-V utils.

Was using wrong metric names before. 'Aggregated Disk Data Read/Written'
metrics refers to all disks (sum), while the metrics needs to be per disk.

(cherry picked from commit 39c0ca6547)

Change-Id: I4ec36152a8b8147069151dd6eb98f36f7aab9229
Closes-Bug: 1250336
This commit is contained in:
Claudiu Belu 2013-11-18 05:27:31 -08:00
parent 329bf4bd13
commit ebe72d54f7
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ class UtilsV2(object):
_NET_IN_METRIC_NAME = 'Aggregated Filtered Incoming Network Traffic'
_NET_OUT_METRIC_NAME = 'Aggregated Filtered Outgoing Network Traffic'
# Disk metrics are supported from Hyper-V 2012 R2
_DISK_RD_METRIC_NAME = 'Aggregated Disk Data Read'
_DISK_WR_METRIC_NAME = 'Aggregated Disk Data Written'
_DISK_RD_METRIC_NAME = 'Disk Data Read'
_DISK_WR_METRIC_NAME = 'Disk Data Written'
def __init__(self, host='.'):
if sys.platform == 'win32':