VMNetwork Gateway Connection KBytes Received per second

Microsoft.SystemCenter.VirtualMachineManager.2012.VMNetworkGateway.NetReceived (Rule)

This rule collects the number of kbytes received by a connection on the VMNetworkGateway.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.2012.VMNetworkGateway
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
PerformanceDS DataSource Microsoft.SystemCenter.VirtualMachineManager.2012.Report.TimedPowerShell.GatewayPerformanceProvider Default
CounterCD ConditionDetection System.ExpressionFilter Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.VirtualMachineManager.2012.VMNetworkGateway.NetReceived" Enabled="true" Target="VMM2012Discovery!Microsoft.SystemCenter.VirtualMachineManager.2012.VMNetworkGateway">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="Microsoft.SystemCenter.VirtualMachineManager.2012.Report.TimedPowerShell.GatewayPerformanceProvider">
<!-- This should be kept in sync with the other Gateway usage collection rules to ensure cookdown by the healthservice-->
<IntervalSeconds>1800</IntervalSeconds>
<TimeoutSeconds>60</TimeoutSeconds>
<Parameters>
<Parameter>
<Name>VMMServer</Name>
<Value>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMNetworkGateway"]/VMMServer$</Value>
</Parameter>
<Parameter>
<Name>domain</Name>
<Value>$RunAs[Name="PROV2Library!Microsoft.SystemCenter.VirtualMachineManager.2012.VMMServerConnectionRunAsProfile"]/Domain$</Value>
</Parameter>
<Parameter>
<Name>username</Name>
<Value>$RunAs[Name="PROV2Library!Microsoft.SystemCenter.VirtualMachineManager.2012.VMMServerConnectionRunAsProfile"]/UserName$</Value>
</Parameter>
<Parameter>
<Name>pass</Name>
<Value>$RunAs[Name="PROV2Library!Microsoft.SystemCenter.VirtualMachineManager.2012.VMMServerConnectionRunAsProfile"]/Password$</Value>
</Parameter>
</Parameters>
</DataSource>
</DataSources>
<ConditionDetection ID="CounterCD" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">ObjectName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">VMNetworkGateway-$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMNetworkGateway"]/VMNetworkGatewayId$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">CounterName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">KBytes Received</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>