Savision_Community_Windows_FileSystemItemConsecutiveSamplesThreshold.MonitorTwoStateFilesSize (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.SimpleScheduler Default
DS ProbeAction Savision_Community_Windows_FileSystemMappingFilesSizeProbe Default
ProbeOnDemand ProbeAction Savision_Community_Windows_FileSystemMappingFilesSizeProbe Default
ConditionError ConditionDetection System.ExpressionFilter Default
ConditionOK ConditionDetection System.ExpressionFilter Default
Consecutive ConditionDetection System.Performance.ConsecutiveSamplesCondition Default
FILTERTIMER ConditionDetection System.SchedulerFilter Default

Overrideable Parameters:

IDParameterTypeSelector
IntervalSecondsint$Config/IntervalSeconds$
SyncTimestring$Config/SyncTime$

Source Code:

<UnitMonitorType Accessibility="Public" ID="Savision_Community_Windows_FileSystemItemConsecutiveSamplesThreshold.MonitorTwoStateFilesSize">
<MonitorTypeStates>
<MonitorTypeState ID="OK"/>
<MonitorTypeState ID="ERROR"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="0" name="SyncTime" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Path" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="StartDay" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="EndDay" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="DaysOfWeekMask" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Threshold" type="xsd:double"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="NumSamples" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Direction" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="Scheduler" TypeID="System!System.SimpleScheduler">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
</DataSource>
<ProbeAction TypeID="Savision_Community_Windows_FileSystemMappingFilesSizeProbe" ID="DS">
<FilePath>$Config/Path$</FilePath>
</ProbeAction>
<ProbeAction TypeID="Savision_Community_Windows_FileSystemMappingFilesSizeProbe" ID="ProbeOnDemand">
<FilePath>$Config/Path$</FilePath>
</ProbeAction>
<ConditionDetection ID="FILTERTIMER" TypeID="System!System.SchedulerFilter">
<SchedulerFilter>
<ProcessDataMode>OnSchedule</ProcessDataMode>
<Schedule>
<WeeklySchedule>
<Windows>
<Daily>
<Start>$Config/StartDay$</Start>
<End>$Config/EndDay$</End>
<DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask>
</Daily>
</Windows>
</WeeklySchedule>
<ExcludeDates/>
</Schedule>
<UseCurrentTime>true</UseCurrentTime>
</SchedulerFilter>
</ConditionDetection>
<ConditionDetection TypeID="Perf!System.Performance.ConsecutiveSamplesCondition" ID="Consecutive">
<Threshold>$Config/Threshold$</Threshold>
<Direction>$Config/Direction$</Direction>
</ConditionDetection>
<ConditionDetection ID="ConditionOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value>$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="ConditionError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value>$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="OK">
<Node ID="ConditionOK">
<Node ID="Consecutive">
<Node ID="DS">
<Node ID="Scheduler"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="ERROR">
<Node ID="ConditionError">
<Node ID="Consecutive">
<Node ID="DS">
<Node ID="FILTERTIMER">
<Node ID="Scheduler"/>
</Node>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
<OnDemandDetections>
<OnDemandDetection MonitorTypeStateID="OK">
<Node ID="ConditionOK">
<Node ID="Consecutive">
<Node ID="ProbeOnDemand"/>
</Node>
</Node>
</OnDemandDetection>
<OnDemandDetection MonitorTypeStateID="ERROR">
<Node ID="ConditionError">
<Node ID="Consecutive">
<Node ID="ProbeOnDemand"/>
</Node>
</Node>
</OnDemandDetection>
</OnDemandDetections>
</MonitorImplementation>
</UnitMonitorType>