WMI 事件重設
Microsoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType (UnitMonitorType)
雙狀態監視,每項都與一個事件有關聯。
Element properties:
Member Modules:
Source Code:
<UnitMonitorType ID="Microsoft.Windows.WmiEventProvider.2SingleEvent2StateMonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="FirstEventRaised"/>
<MonitorTypeState ID="SecondEventRaised"/>
</MonitorTypeStates>
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="FirstNameSpace" type="xsd:string"/>
<xsd:element name="FirstQuery" type="xsd:string"/>
<xsd:element name="FirstPollInterval" type="xsd:integer"/>
<xsd:element name="FirstExpression" type="ExpressionType"/>
<xsd:element name="SecondNameSpace" type="xsd:string"/>
<xsd:element name="SecondQuery" type="xsd:string"/>
<xsd:element name="SecondPollInterval" type="xsd:integer"/>
<xsd:element name="SecondExpression" type="ExpressionType"/>
</Configuration>
<MonitorImplementation>
<MemberModules>
<DataSource TypeID="Microsoft.Windows.WmiEventProvider" ID="FirstDataSource">
<NameSpace>$Config/FirstNameSpace$</NameSpace>
<Query>$Config/FirstQuery$</Query>
<PollInterval>$Config/FirstPollInterval$</PollInterval>
</DataSource>
<DataSource TypeID="Microsoft.Windows.WmiEventProvider" ID="SecondDataSource">
<NameSpace>$Config/SecondNameSpace$</NameSpace>
<Query>$Config/SecondQuery$</Query>
<PollInterval>$Config/SecondPollInterval$</PollInterval>
</DataSource>
<ConditionDetection TypeID="System!System.ExpressionFilter" ID="FirstFilterCondition">
<Expression>$Config/FirstExpression$</Expression>
</ConditionDetection>
<ConditionDetection TypeID="System!System.ExpressionFilter" ID="SecondFilterCondition">
<Expression>$Config/SecondExpression$</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="FirstEventRaised">
<Node ID="FirstFilterCondition">
<Node ID="FirstDataSource"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="SecondEventRaised">
<Node ID="SecondFilterCondition">
<Node ID="SecondDataSource"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>