MSSQL 2016: Average length of the row chains in the hash buckets monitor type

Microsoft.SQLServer.2016.Monitoring.HashIndexAvgChainLength.MonitorType (UnitMonitorType)

Average length of the row chains in the hash buckets monitor type

Element properties:

RunAsMicrosoft.SQLServer.MonitoringAccount
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.Monitoring.HashIndexAvgChainLength.DataSource Default
DatabaseFilter ConditionDetection System.ExpressionFilter Default
HealthState ConditionDetection System.ExpressionFilter Default
WarningState ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval (seconds)The recurring interval of time in seconds in which to run the workflow.
TimeoutSecondsint$Config/TimeoutSeconds$Timeout (seconds)Specifies the time the workflow is allowed to run before being closed and marked as failed.
SyncTimestring$Config/SyncTime$Synchronization TimeThe synchronization time specified by using a 24-hour format. May be omitted.
EmptyBucketPercentThresholdint$Config/EmptyBucketPercentThreshold$Empty Bucket Percent ThresholdThreshold for Empty Bucket Percent that indicates the number of empty buckets in the hash index.
AvgChainLengthThresholdint$Config/AvgChainLengthThreshold$Average Chain Length ThresholdThreshold for Average Chain Length that indicates the average length of the row chains in the hash buckets.
ErrorTopLinesint$Config/ErrorTopLines$Display index countThe display count of not configured indexes according to the best practice.

Source Code:

<UnitMonitorType ID="Microsoft.SQLServer.2016.Monitoring.HashIndexAvgChainLength.MonitorType" Accessibility="Internal" RunAs="GPMP!Microsoft.SQLServer.MonitoringAccount">
<MonitorTypeStates>
<MonitorTypeState ID="Health"/>
<MonitorTypeState ID="Warning"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ComputerName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SqlInstanceName" type="xsd:string"/>
<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="ServiceName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DatabaseName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="EmptyBucketPercentThreshold" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AvgChainLengthThreshold" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ErrorTopLines" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
<OverrideableParameter ID="EmptyBucketPercentThreshold" Selector="$Config/EmptyBucketPercentThreshold$" ParameterType="int"/>
<OverrideableParameter ID="AvgChainLengthThreshold" Selector="$Config/AvgChainLengthThreshold$" ParameterType="int"/>
<OverrideableParameter ID="ErrorTopLines" Selector="$Config/ErrorTopLines$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.Monitoring.HashIndexAvgChainLength.DataSource">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
<ComputerName>$Config/ComputerName$</ComputerName>
<SqlInstanceName>$Config/SqlInstanceName$</SqlInstanceName>
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<ServiceName>$Config/ServiceName$</ServiceName>
<EmptyBucketPercentThreshold>$Config/EmptyBucketPercentThreshold$</EmptyBucketPercentThreshold>
<AvgChainLengthThreshold>$Config/AvgChainLengthThreshold$</AvgChainLengthThreshold>
<ErrorTopLines>$Config/ErrorTopLines$</ErrorTopLines>
</DataSource>
<ConditionDetection ID="HealthState" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="WarningState" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">Health</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="DatabaseFilter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='DatabaseName']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/DatabaseName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Health">
<Node ID="HealthState">
<Node ID="DatabaseFilter">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Warning">
<Node ID="WarningState">
<Node ID="DatabaseFilter">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>