Type d'analyse de l'état de WS-Management UNIX/Linux
Microsoft.Unix.WSMan.Status.Filtered.MonitorType (UnitMonitorType)
Analyse de l'état de WS-Management UNIX/Linux
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="Microsoft.Unix.WSMan.Status.Filtered.MonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="StatusOK"/>
<MonitorTypeState ID="StatusFailed"/>
</MonitorTypeStates>
<Configuration>
<xsd:element name="TargetSystem" type="xsd:string"/>
<xsd:element name="Uri" type="xsd:string"/>
<xsd:element name="Filter" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="SplitItems" type="xsd:boolean"/>
<xsd:element name="Interval" type="xsd:unsignedInt"/>
<xsd:element name="SyncTime" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="InstanceName" type="xsd:string"/>
<xsd:element name="InstanceProperty" type="xsd:string"/>
<xsd:element name="Status" type="xsd:string"/>
<xsd:element name="ExpectedStatus" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Interval" ParameterType="int" Selector="$Config/Interval$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
<OverrideableParameter ID="ExpectedStatus" ParameterType="string" Selector="$Config/ExpectedStatus$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.Unix.WSMan.TimedEnumerator.Filtered">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<Uri>$Config/Uri$</Uri>
<Filter>$Config/Filter$</Filter>
<SplitItems>true</SplitItems>
<Interval>$Config/Interval$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
<InstanceName>$Config/InstanceName$</InstanceName>
<InstanceProperty>$Config/InstanceProperty$</InstanceProperty>
</DataSource>
<ConditionDetection ID="ErrorFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">$Config/Status$</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Config/ExpectedStatus$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="SuccessFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">$Config/Status$</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/ExpectedStatus$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="StatusOK">
<Node ID="SuccessFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusFailed">
<Node ID="ErrorFilter">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>