Microsoft.SystemCenter.MPAuthoringConsole.Template.Recovery.HealthState.CommandLineTaskWithExpressionFilterCommand Line Task (With Expression Filter)

Microsoft.SystemCenter.MPAuthoringConsole.Template.Recovery.HealthState.CommandLineTaskWithExpressionFilter (Template)

Source Code:

<Template ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Recovery.HealthState.CommandLineTaskWithExpressionFilter">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="ID" type="xsd:string"/>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Description" type="xsd:string"/>
<xsd:element name="Target" type="xsd:string"/>
<xsd:element name="Category" type="xsd:string"/>
<xsd:element name="LocaleID" type="xsd:string"/>
<xsd:element name="Monitor" type="xsd:string"/>
<xsd:element name="State" type="xsd:string"/>
<xsd:element name="ResetMonitor" type="xsd:boolean"/>
<xsd:element name="Expression" type="ExpressionType"/>
<xsd:element name="ApplicationName" type="xsd:string"/>
<xsd:element name="WorkingDirectory" type="xsd:string"/>
<xsd:element name="CommandLine" type="xsd:string"/>
<xsd:element name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element name="RequireOutput" type="xsd:boolean"/>
</Configuration>
<References>
<Reference ID="System"/>
</References>
<Implementation>
<Monitoring>
<Recoveries>
<Recovery ID="$TemplateConfig/ID$" Target="$TemplateConfig/Target$" Accessibility="Internal" Monitor="$TemplateConfig/Monitor$" ExecuteOnState="$TemplateConfig/State$" ResetMonitor="$TemplateConfig/ResetMonitor$">
<Category>$TemplateConfig/Category$</Category>
<ConditionDetection ID="CD" TypeID="$Reference/System$System.ExpressionFilter">
<Expression>$TemplateConfig/Expression$</Expression>
</ConditionDetection>
<WriteAction ID="WA" TypeID="$Reference/System$System.CommandExecuter">
<ApplicationName>$TemplateConfig/ApplicationName$</ApplicationName>
<WorkingDirectory>$TemplateConfig/WorkingDirectory$</WorkingDirectory>
<CommandLine>$TemplateConfig/CommandLine$</CommandLine>
<TimeoutSeconds>$TemplateConfig/TimeoutSeconds$</TimeoutSeconds>
<RequireOutput>$TemplateConfig/RequireOutput$</RequireOutput>
</WriteAction>
</Recovery>
</Recoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleID$" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/ID$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>