Hyper-V 2012 Virtual Machine Hard Drive Percentage of Used Space Collection Rule

Microsoft.Windows.HyperV.2012.DiskPartitionSpaceProvider.UsedSpacePercCollectionRule (Rule)

Collects Virtual Machine's Hard Drive Percentage of Used Space in Hyper-V 2012

Element properties:

TargetMicrosoft.Windows.HyperV.2012.VirtualMachine
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.HyperV.DiskPartitionSpaceProviderDataSourceModule Default
PerfMapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.HyperV.2012.DiskPartitionSpaceProvider.UsedSpacePercCollectionRule" Enabled="onEssentialMonitoring" Target="HVDisc!Microsoft.Windows.HyperV.2012.VirtualMachine" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="HVLib!Microsoft.Windows.HyperV.DiskPartitionSpaceProviderDataSourceModule">
<IntervalSeconds>3600</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="PerfMapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>Virtual Hard Disk</ObjectName>
<CounterName>Used Space Percent</CounterName>
<InstanceName>$Data/Property[2]$</InstanceName>
<Value>$Data/Property[3]$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SCLib!Microsoft.SystemCenter.CollectPerformanceData"/>
</WriteActions>
</Rule>