Microsoft.SystemCenter.VirtualMachineManager.StoragePool.UsedCapacity (Rule)

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.StoragePool
CategoryPerformanceHealth
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
PerformanceDS DataSource Microsoft.Windows.TimedScript.PerformanceProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.VirtualMachineManager.StoragePool.UsedCapacity" Enabled="false" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.StoragePool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceHealth</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="Windows!Microsoft.Windows.TimedScript.PerformanceProvider">
<IntervalSeconds>600</IntervalSeconds>
<SyncTime/>
<ScriptName>StoragePoolCapacity.vbs</ScriptName>
<Arguments>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.StoragePool"]/UsedCapacity$</Arguments>
<ScriptBody><Script>SetLocale("en-us")

Dim oAPI, oBag, oValue
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()

Dim oArgs
Set oArgs = WScript.Arguments
If oArgs.Count &lt;&gt; 1 Then
WScript.Quit()
End If

oValue = oArgs(0)

Call oBag.AddValue("UsedCapacityValue", oValue)

Call oAPI.Return(oBag)</Script></ScriptBody>
<TimeoutSeconds>570</TimeoutSeconds>
<ObjectName>Storage</ObjectName>
<CounterName>UsedCapacity</CounterName>
<InstanceName/>
<Value>$data/Property[@Name='UsedCapacityValue']$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>