Consecutive Samples Threshold Monitor - Error on too high

Microsoft.SystemCenter.NTService.ConsecutiveSamplesThreshold.ErrorOnTooHigh (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.NTService.Frequency.RawPerfCounterProvider Default
CD ConditionDetection System.Performance.ConsecutiveSamplesCondition Default
ExpressionNormalSamples ConditionDetection System.LogicalSet.ExpressionFilter Default
ExpressionTooHighSamples ConditionDetection System.LogicalSet.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Frequencyint$Config/Frequency$FrequencyFrequency in seconds to poll performance counter
Thresholddouble$Config/Threshold$ThresholdThreshold value for monitor
NumSamplesint$Config/NumSamples$Number of samplesNumber of consecutive samples to consider for monitor

Source Code:

<UnitMonitorType ID="Microsoft.SystemCenter.NTService.ConsecutiveSamplesThreshold.ErrorOnTooHigh" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="SampleCountTooHigh"/>
<MonitorTypeState ID="SampleCountNormal"/>
</MonitorTypeStates>
<Configuration>
<xsd:element name="ServiceName" type="xsd:string"/>
<xsd:element name="ObjectName" type="xsd:string"/>
<xsd:element name="CounterName" type="xsd:string"/>
<xsd:element name="InstanceProperty" type="xsd:string"/>
<xsd:element name="ValueProperty" type="xsd:string"/>
<xsd:element name="Frequency" type="xsd:unsignedInt"/>
<xsd:element name="ScaleBy" type="xsd:double" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Threshold" type="xsd:double"/>
<xsd:element name="NumSamples" type="xsd:unsignedInt"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Frequency" ParameterType="int" Selector="$Config/Frequency$"/>
<OverrideableParameter ID="Threshold" ParameterType="double" Selector="$Config/Threshold$"/>
<OverrideableParameter ID="NumSamples" ParameterType="int" Selector="$Config/NumSamples$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource TypeID="Microsoft.SystemCenter.NTService.Frequency.RawPerfCounterProvider" ID="DS">
<ServiceName>$Config/ServiceName$</ServiceName>
<ObjectName>$Config/ObjectName$</ObjectName>
<CounterName>$Config/CounterName$</CounterName>
<InstanceProperty>$Config/InstanceProperty$</InstanceProperty>
<ValueProperty>$Config/ValueProperty$</ValueProperty>
<Frequency>$Config/Frequency$</Frequency>
<ScaleBy>$Config/ScaleBy$</ScaleBy>
</DataSource>
<ConditionDetection TypeID="Performance!System.Performance.ConsecutiveSamplesCondition" ID="CD">
<Threshold>$Config/Threshold$</Threshold>
<Direction>greater</Direction>
</ConditionDetection>
<ConditionDetection TypeID="System!System.LogicalSet.ExpressionFilter" ID="ExpressionNormalSamples">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<EmptySet>Passthrough</EmptySet>
<SetEvaluation>All</SetEvaluation>
</ConditionDetection>
<ConditionDetection TypeID="System!System.LogicalSet.ExpressionFilter" ID="ExpressionTooHighSamples">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<EmptySet>Block</EmptySet>
<SetEvaluation>Any</SetEvaluation>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="SampleCountTooHigh">
<Node ID="ExpressionTooHighSamples">
<Node ID="CD">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="SampleCountNormal">
<Node ID="ExpressionNormalSamples">
<Node ID="CD">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>