指令碼可設定狀態重複事件單位監視器類型

ScriptInstanceStatefulRepeatedEventsUnitMonitorType.Execute_Test_UMConnectivity_Local_Voice_diagnostic_cmdlet._Report_Collection_ (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
ScriptEvents DataSource ScriptInstanceEventMapperDST.Execute_Test_UMConnectivity_Local_Voice_diagnostic_cmdlet._Report_Collection_ Default
ConsolidatorCondition ConditionDetection System.ConsolidatorCondition Default
GoodStateCondition ConditionDetection System.ExpressionFilter Default
ProblemStateCondition ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
TimeWindowInSecondsint$Config/TimeWindowInSeconds$時間範圍滑動時間範圍 (以秒為單位),在此範圍中,必須發生符合「重複閥值」次數的事件,此監視器的狀態才會變更為其問題狀態。
RepeatThresholdint$Config/RepeatThreshold$重複閾值為此監視器定義的事件在「時間範圍」內必須發生的次數,發生之後,此監視器的狀態才會變更至問題狀態。

Source Code:

<UnitMonitorType ID="ScriptInstanceStatefulRepeatedEventsUnitMonitorType.Execute_Test_UMConnectivity_Local_Voice_diagnostic_cmdlet._Report_Collection_" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="GoodState" NoDetection="false"/>
<MonitorTypeState ID="ProblemState" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MonitorType" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="VoteWeight" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeWindowInSeconds" minOccurs="1" maxOccurs="1" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="RepeatThreshold" minOccurs="1" maxOccurs="1" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="GoodStateExpression" type="ExpressionType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ProblemStateExpression" type="ExpressionType"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="TimeWindowInSeconds" ParameterType="int" Selector="$Config/TimeWindowInSeconds$"/>
<OverrideableParameter ID="RepeatThreshold" ParameterType="int" Selector="$Config/RepeatThreshold$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="ScriptEvents" TypeID="ScriptInstanceEventMapperDST.Execute_Test_UMConnectivity_Local_Voice_diagnostic_cmdlet._Report_Collection_"/>
<ConditionDetection ID="GoodStateCondition" TypeID="System!System.ExpressionFilter">
<Expression>$Config/GoodStateExpression$</Expression>
</ConditionDetection>
<ConditionDetection ID="ProblemStateCondition" TypeID="System!System.ExpressionFilter">
<Expression>$Config/ProblemStateExpression$</Expression>
</ConditionDetection>
<ConditionDetection ID="ConsolidatorCondition" TypeID="System!System.ConsolidatorCondition">
<Consolidator>
<ConsolidationProperties/>
<TimeControl>
<WithinTimeSchedule>
<Interval>$Config/TimeWindowInSeconds$</Interval>
</WithinTimeSchedule>
</TimeControl>
<CountingCondition>
<Count>$Config/RepeatThreshold$</Count>
<CountMode>OnNewItemTestOutputRestart_OnTimerSlideByOne</CountMode>
</CountingCondition>
</Consolidator>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="GoodState">
<Node ID="GoodStateCondition">
<Node ID="ScriptEvents"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="ProblemState">
<Node ID="ConsolidatorCondition">
<Node ID="ProblemStateCondition">
<Node ID="ScriptEvents"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>