OleDbCheckConnectionMonitorType

Microsoft.SharePoint.2016.OleDbCheckConnectionMonitorType (UnitMonitorType)

SharePoint OleDbCheckConnectionMonitorType monitor type.

Element properties:

RunAsMicrosoft.SharePoint.Library.AdminAccount
AccessibilityInternal
Support Monitor RecalculateTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SharePoint.2016.OleDbDataSource Default
CDFailed ConditionDetection System.ExpressionFilter Default
CDPassed ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
ConnectionStringstring$Config/ConnectionString$ConnectionStringOleDbCheckConnectionMonitorType Connection String.
IntervalSecondsint$Config/IntervalSeconds$IntervalSecondsOleDbCheckConnectionMonitorType Interval Seconds.

Source Code:

<UnitMonitorType ID="Microsoft.SharePoint.2016.OleDbCheckConnectionMonitorType" Accessibility="Internal" RunAs="MOSS!Microsoft.SharePoint.Library.AdminAccount">
<MonitorTypeStates>
<MonitorTypeState ID="ConnectionFailure" NoDetection="false"/>
<MonitorTypeState ID="NoConnectionFailure" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ConnectionString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="ConnectionString" Selector="$Config/ConnectionString$" ParameterType="string"/>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SharePoint.2016.OleDbDataSource">
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
</DataSource>
<ConditionDetection ID="CDFailed" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Result</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">Success</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDPassed" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Result</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Success</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="ConnectionFailure">
<Node ID="CDFailed">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="NoConnectionFailure">
<Node ID="CDPassed">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
<OnDemandDetections>
<OnDemandDetection MonitorTypeStateID="ConnectionFailure">
<Node ID="CDFailed">
<Node ID="DS"/>
</Node>
</OnDemandDetection>
<OnDemandDetection MonitorTypeStateID="NoConnectionFailure">
<Node ID="CDPassed">
<Node ID="DS"/>
</Node>
</OnDemandDetection>
</OnDemandDetections>
</MonitorImplementation>
</UnitMonitorType>