Тип монитора "Процент используемой пропускной способности"
Microsoft.Windows.Server.2008.NetworkAdapter.PercentBandwidthUsed.MonitorType (UnitMonitorType)
Тип монитора, используемый для проверки процентного значения используемой пропускной способности сетевого адаптера.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="Microsoft.Windows.Server.2008.NetworkAdapter.PercentBandwidthUsed.MonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="HealthyState" NoDetection="false"/>
<MonitorTypeState ID="WarningState" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="ComputerName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="InstanceName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="CounterName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Threshold" type="xsd:double"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="NumOfSamples" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IsDiscoverDisabled" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IsUseMacAddress" type="xsd:boolean"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Threshold" Selector="$Config/Threshold$" ParameterType="double"/>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="NumOfSamples" Selector="$Config/NumOfSamples$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.2008.NetworkAdapter.BandwidthUsed.ModuleType">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<IsDiscoverDisabled>$Config/IsDiscoverDisabled$</IsDiscoverDisabled>
<IsUseMacAddress>$Config/IsUseMacAddress$</IsUseMacAddress>
<ComputerName>$Config/ComputerName$</ComputerName>
<InstanceName>$Config/InstanceName$</InstanceName>
<CounterName>$Config/CounterName$</CounterName>
</DataSource>
<ConditionDetection ID="TargetFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/InstanceName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/InstanceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="SamplesCondition" TypeID="SystemPerf!System.Performance.ConsecutiveSamplesCondition">
<Threshold>$Config/Threshold$</Threshold>
<Direction>greaterequal</Direction>
</ConditionDetection>
<ConditionDetection ID="FilterOk" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Integer">$Config/NumOfSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterNotOk" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Integer">$Config/NumOfSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="HealthyState">
<Node ID="FilterOk">
<Node ID="SamplesCondition">
<Node ID="TargetFilter">
<Node ID="DS"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="WarningState">
<Node ID="FilterNotOk">
<Node ID="SamplesCondition">
<Node ID="TargetFilter">
<Node ID="DS"/>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>