AD Replication Queue monitor type

Microsoft.Windows.Server.2016.AD.Replication.Queue.Monitortype (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
ScriptDS DataSource Microsoft.Windows.Server.2016.AD.Replication.Queue.DataSource Default
FilterError ConditionDetection System.ExpressionFilter Default
FilterSuccess ConditionDetection System.ExpressionFilter Default
FilterWarn ConditionDetection System.ExpressionFilter Default
PerfAvgCond ConditionDetection System.Performance.AveragerCondition Default
PerfMapper ConditionDetection System.Performance.DataGenericMapper Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Frequencyint$Config/Frequency$Interval (sec)
TimeoutSecondsint$Config/TimeoutSeconds$Timeout Seconds
WarnThresholdint$Config/WarnThreshold$Threshold for the number of objects in the replication queue to trigger a warning
ErrorThresholdint$Config/ErrorThreshold$Threshold for the number of objects in the replication queue to trigger an error
NumSamplesint$Config/NumSamples$Number of samples to take the average queue size.

Source Code:

<UnitMonitorType ID="Microsoft.Windows.Server.2016.AD.Replication.Queue.Monitortype" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="QueueOK" NoDetection="false"/>
<MonitorTypeState ID="QueueWarn" NoDetection="false"/>
<MonitorTypeState ID="QueueError" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Frequency" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WarnThreshold" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ErrorThreshold" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NumSamples" type="xsd:int"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Frequency" Selector="$Config/Frequency$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
<OverrideableParameter ID="WarnThreshold" Selector="$Config/WarnThreshold$" ParameterType="int"/>
<OverrideableParameter ID="ErrorThreshold" Selector="$Config/ErrorThreshold$" ParameterType="int"/>
<OverrideableParameter ID="NumSamples" Selector="$Config/NumSamples$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="ScriptDS" TypeID="Microsoft.Windows.Server.2016.AD.Replication.Queue.DataSource">
<Frequency>$Config/Frequency$</Frequency>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<WarnThreshold>$Config/WarnThreshold$</WarnThreshold>
<ErrorThreshold>$Config/ErrorThreshold$</ErrorThreshold>
<NumSamples>$Config/NumSamples$</NumSamples>
</DataSource>
<ConditionDetection ID="FilterSuccess" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarnThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterWarn" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Greater</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarnThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Greater</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="PerfMapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>AD Replication</ObjectName>
<CounterName>AD Replication Queue</CounterName>
<InstanceName>$data/Property[@Name='StatusInstance']$</InstanceName>
<Value>$data/Property[@Name='StatusValue']$</Value>
</ConditionDetection>
<ConditionDetection ID="PerfAvgCond" TypeID="SystemPerf!System.Performance.AveragerCondition">
<NumSamples>$Config/NumSamples$</NumSamples>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="QueueOK">
<Node ID="FilterSuccess">
<Node ID="PerfAvgCond">
<Node ID="PerfMapper">
<Node ID="ScriptDS"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="QueueWarn">
<Node ID="FilterWarn">
<Node ID="PerfAvgCond">
<Node ID="PerfMapper">
<Node ID="ScriptDS"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="QueueError">
<Node ID="FilterError">
<Node ID="PerfAvgCond">
<Node ID="PerfMapper">
<Node ID="ScriptDS"/>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>