計時器重設
Microsoft.Windows.MissingEventLogTimer2StateMonitorType (UnitMonitorType)
雙狀態監視,遺失事件狀態及自動重設狀態。
Element properties:
Member Modules:
Source Code:
<UnitMonitorType ID="Microsoft.Windows.MissingEventLogTimer2StateMonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="MissingEventRaised"/>
<MonitorTypeState ID="TimerEventRaised"/>
</MonitorTypeStates>
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="MissingComputerName" type="xsd:string"/>
<xsd:element name="MissingLogName" type="xsd:string"/>
<xsd:element name="MissingExpression" type="ExpressionType"/>
<xsd:element name="Consolidator" type="ConsolidatorType"/>
<xsd:element name="TimerWaitInSeconds" type="xsd:integer"/>
</Configuration>
<MonitorImplementation>
<MemberModules>
<DataSource TypeID="Microsoft.Windows.BaseEventProvider" ID="MissingDataSource">
<ComputerName>$Config/MissingComputerName$</ComputerName>
<LogName>$Config/MissingLogName$</LogName>
</DataSource>
<ProbeAction TypeID="System!System.PassThroughProbe" ID="OnDemandReset"/>
<ConditionDetection TypeID="System!System.ExpressionFilter" ID="MissingFilterCondition">
<Expression>$Config/MissingExpression$</Expression>
</ConditionDetection>
<ConditionDetection TypeID="System!System.MissingConsolidatorCondition" ID="MissingDataCondition">
<Consolidator>$Config/Consolidator$</Consolidator>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">Count</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection TypeID="System!System.TimerCondition" ID="TimerCondition">
<TimerWaitInSeconds>$Config/TimerWaitInSeconds$</TimerWaitInSeconds>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="MissingEventRaised">
<Node ID="MissingDataCondition">
<Node ID="MissingFilterCondition">
<Node ID="MissingDataSource"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="TimerEventRaised">
<Node ID="TimerCondition">
<Node ID="MissingDataCondition">
<Node ID="MissingFilterCondition">
<Node ID="MissingDataSource"/>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
<OnDemandDetections>
<OnDemandDetection MonitorTypeStateID="TimerEventRaised">
<Node ID="OnDemandReset"/>
</OnDemandDetection>
</OnDemandDetections>
</MonitorImplementation>
</UnitMonitorType>