Community.PowerShellMonitoring.PageSet.DataSource.PowerShellEvent (UIPageSet)

Element properties:

Type DefinitionCommunity.PowerShellMonitoring.DataSource.PowerShellEvent

Source Code:

<UIPageSet ID="Community.PowerShellMonitoring.PageSet.DataSource.PowerShellEvent" TypeDefinitionID="Community.PowerShellMonitoring.DataSource.PowerShellEvent">
<UIPageReferences>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.DataSource.PowerShellEvent.Schedule" PageID="System!System.SimpleSchedulerPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="SimpleReccuringSchedule">
<xsl:element name="Interval">
<xsl:value-of select="IntervalSeconds"/>
</xsl:element>
<xsl:if test="boolean(string-length(SyncTime))">
<xsl:copy-of select="SyncTime"/>
</xsl:if>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference1.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference1.TabName"/>
</UIPageReference>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.DataSource.PowerShellEvent.Script" PageID="Windows!Microsoft.Windows.ScriptPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/ScriptName"/>
<xsl:copy-of select="/Arguments"/>
<xsl:copy-of select="/ScriptBody"/>
<xsl:copy-of select="/TimeoutSeconds"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedEventPageSet.Reference2.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedEventPageSet.Reference2.TabName"/>
</UIPageReference>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.DataSource.PowerShellEvent.Mapper" PageID="Windows!Microsoft.Windows.EventMapperPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/EventOriginId"/>
<xsl:copy-of select="/PublisherId"/>
<xsl:copy-of select="/PublisherName"/>
<xsl:copy-of select="/Channel"/>
<xsl:copy-of select="/LoggingComputer"/>
<xsl:copy-of select="/EventNumber"/>
<xsl:copy-of select="/EventCategory"/>
<xsl:copy-of select="/EventLevel"/>
<xsl:copy-of select="/UserName"/>
<xsl:copy-of select="/Description"/>
<xsl:copy-of select="/Params"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedEventPageSet.Reference3.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedEventPageSet.Reference3.TabName"/>
</UIPageReference>
</UIPageReferences>
<OutputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<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:copy-of select="/EventOriginId"/>
<xsl:copy-of select="/PublisherId"/>
<xsl:copy-of select="/PublisherName"/>
<xsl:copy-of select="/Channel"/>
<xsl:copy-of select="/LoggingComputer"/>
<xsl:copy-of select="/EventNumber"/>
<xsl:copy-of select="/EventCategory"/>
<xsl:copy-of select="/EventLevel"/>
<xsl:copy-of select="/UserName"/>
<xsl:copy-of select="/Description"/>
<xsl:copy-of select="/Params"/>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>