File Extension Modified by Time
Windows.Monitoring.FileSystem.FileExtensionModifiedByTime.MonitorType (UnitMonitorType)
Custom monitor type to checks a specific file extension, and checks if the file with that extension has been modified in a given time.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="Windows.Monitoring.FileSystem.FileExtensionModifiedByTime.MonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="FilesOk" NoDetection="false"/>
<MonitorTypeState ID="FilesNotOk" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" name="TargetFolder" type="xsd:string"/>
<xsd:element minOccurs="1" name="otime" type="xsd:integer"/>
<xsd:element minOccurs="1" name="oextensao" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Time" Selector="$Config/otime$" ParameterType="int"/>
<OverrideableParameter ID="FileExtension" Selector="$Config/oextensao$" ParameterType="string"/>
<OverrideableParameter ID="Frequency" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Windows.Monitoring.FileSystem.FileExtensionModifiedByTime.DataSource">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<TargetFolder>$Config/TargetFolder$</TargetFolder>
<otime>$Config/otime$</otime>
<oextensao>$Config/oextensao$</oextensao>
</DataSource>
<ConditionDetection ID="FilterOk" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">ok</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterNotOk" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">erro</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="FilesOk">
<Node ID="FilterOk">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="FilesNotOk">
<Node ID="FilterNotOk">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>