健全狀況服務監看員: 將 "System Center Management Health Service Heartbeat Failure" 監視設定為警告
Microsoft.SystemCenter.HealthServiceWatcher.SetHeartbeatStateAction.Warning (WriteActionModuleType)
保留為內部使用。
Element properties:
Member Modules:
Source Code:
<WriteActionModuleType ID="Microsoft.SystemCenter.HealthServiceWatcher.SetHeartbeatStateAction.Warning" Accessibility="Internal" Batching="false">
<Configuration/>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ConditionDetection ID="Health.FilterCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Reachability/State</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Exists>
<ValueExpression>
<XPathQuery Type="Integer">Reachability/Reasons/Reason[.=17]</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteAction ID="Health.SetStateAction" TypeID="Microsoft.SystemCenter.HealthServiceWatcher.SetHeartbeatStateAction">
<HealthState>Warning</HealthState>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="Health.SetStateAction">
<Node ID="Health.FilterCondition"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<InputType>System!System.Availability.StateData</InputType>
</WriteActionModuleType>