Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet (UIPageSet)

Element properties:

Type DefinitionMicrosoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType

Source Code:

<UIPageSet ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet" TypeDefinitionID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType">
<UIPageReferences>
<UIPageReference ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet.Reference1" PageID="Microsoft.SystemCenter.MPAuthoringConsole.HealthNameWithParentMonitorPage" Usage="CreationAndUpdate">
<InputParameters>
<Category>AvailabilityHealth</Category>
</InputParameters>
</UIPageReference>
<UIPageReference ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet.Reference2" PageID="System!System.SimpleSchedulerPage" Usage="CreationAndUpdate"/>
<UIPageReference ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet.Reference3" PageID="Windows!Microsoft.Windows.ScriptPage" Usage="CreationAndUpdate">
<InputParameters>
<ScriptName>MyScript.vbs</ScriptName>
<ScriptBody><Script>
' Enter a script that outputs a property bag
' Example VBScript:
'
' Dim oAPI, oBag
' Set oAPI = CreateObject("MOM.ScriptAPI")
' Set oBag = oAPI.CreatePropertyBag()
' Call oBag.AddValue("Status","OK")
' Call oAPI.Return(oBag)
</Script></ScriptBody>
</InputParameters>
</UIPageReference>
<UIPageReference ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet.Reference4" PageID="System!System.ExpressionBuilderPage" Usage="CreationAndUpdate">
<InputParameters>
<DataType>System.PropertyBagData</DataType>
</InputParameters>
<Title ID="Title"/>
<TabName ID="TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.SystemCenter.MPAuthoringConsole.Template.Monitor.TimedScript.TwoStateMonitorType.PageSet.Reference5" PageID="System!System.ExpressionBuilderPage" Usage="CreationAndUpdate">
<InputParameters>
<DataType>System.PropertyBagData</DataType>
</InputParameters>
<Title ID="Title"/>
<TabName ID="TabName"/>
</UIPageReference>
</UIPageReferences>
<OutputTransform>
<xsl:stylesheet version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="Configuration">
<xsl:copy-of select="/ID"/>
<xsl:copy-of select="/Name"/>
<xsl:copy-of select="/Description"/>
<xsl:copy-of select="/Target"/>
<xsl:copy-of select="/ParentMonitor"/>
<xsl:copy-of select="/Category"/>
<xsl:copy-of select="/LocaleID"/>
<xsl:element name="IntervalSeconds">
<xsl:variable name="RawInterval" select="/SimpleReccuringSchedule/Interval"/>
<xsl:variable name="Units" select="/SimpleReccuringSchedule/Interval/@Unit"/>
<xsl:choose>
<xsl:when test="not(boolean($Units)) or $Units='Seconds'">
<xsl:value-of select="$RawInterval"/>
</xsl:when>
<xsl:when test="$Units='Minutes'">
<xsl:value-of select="$RawInterval*60"/>
</xsl:when>
<xsl:when test="$Units='Hours'">
<xsl:value-of select="$RawInterval*3600"/>
</xsl:when>
<xsl:when test="$Units='Days'">
<xsl:value-of select="$RawInterval*86400"/>
</xsl:when>
</xsl:choose>
</xsl:element>
<xsl:element name="SyncTime">
<xsl:value-of select="/SimpleReccuringSchedule/SyncTime"/>
</xsl:element>
<xsl:element name="ScriptName">
<xsl:value-of select="/ScriptName[1]"/>
</xsl:element>
<xsl:element name="Arguments">
<xsl:value-of select="/Arguments[1]"/>
</xsl:element>
<xsl:element name="ScriptBody">
<xsl:value-of select="/ScriptBody[1]"/>
</xsl:element>
<xsl:element name="TimeoutSeconds">
<xsl:value-of select="/TimeoutSeconds[1]"/>
</xsl:element>
<xsl:element name="ErrorExpression">
<xsl:copy-of select="/Expression[1]/*"/>
</xsl:element>
<xsl:element name="SuccessExpression">
<xsl:copy-of select="/Expression[2]/*"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>