SavisionCommunityMonitorQueryResult.TwoStateConsecutive.UnitMonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateTrue

Member Modules:

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

Overrideable Parameters:

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

Source Code:

<UnitMonitorType Accessibility="Public" ID="SavisionCommunityMonitorQueryResult.TwoStateConsecutive.UnitMonitorType">
<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="ConnectionString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Query" 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="QueryName" type="xsd:string"/>
<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="MetricType" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Direction" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="ErrorMessage" 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="SavisionCommunityMonitorQueryResultPerformanceCollectionProbe" ID="DS">
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<Query>$Config/Query$</Query>
<QueryName>$Config/QueryName$</QueryName>
</ProbeAction>
<ProbeAction TypeID="SavisionCommunityMonitorQueryResultPerformanceCollectionProbe" ID="ProbeOnDemand">
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<Query>$Config/Query$</Query>
<QueryName>$Config/QueryName$</QueryName>
</ProbeAction>
<ConditionDetection ID="Time_Filter" 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="Time_Filter">
<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>