Datenbankmodul \endash Thread-Anzahl-Monitortyp für 2014-Datenbanken
RunAs | Microsoft.SQLServer.2014.SQLProbeAccount |
Accessibility | Internal |
Support Monitor Recalculate | False |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.SQLServer.2014.DBEngine.ThreadCountMonitor.DataSourceMapped | Default |
CSC | ConditionDetection | System.Performance.ConsecutiveSamplesCondition | Default |
ErrorCondition | ConditionDetection | System.ExpressionFilter | Default |
NormalCondition | ConditionDetection | System.ExpressionFilter | Default |
ID | ParameterType | Selector | Display Name | Description |
---|---|---|---|---|
IntervalSeconds | int | $Config/IntervalSeconds$ | Intervall (Sekunden) | Das periodische Intervall in Sekunden, in dem der Workflow ausgeführt werden soll. |
TimeoutSeconds | int | $Config/TimeoutSeconds$ | Timeout (Sekunden) | Gibt die Zeit an, die der Workflow ausgeführt werden darf, bevor er geschlossen und als fehlgeschlagen markiert wird. |
MinFreeThreadsCount | int | $Config/MinFreeThreadsCount$ | Mindestschwellenwert für freie Threads | Der Workflow bestimmt maximale Anzahl an Threads und Anzahl aktiver Threads für jeden Datenbankmodul-Vorgang. Wenn die Anzahl freier Threads kleiner oder gleich diesem Parameter ist, wird eine Warnung erzeugt. |
NumSamples | int | $Config/NumSamples$ | Anzahl der Stichproben | Gibt an, wie oft ein gemessener Wert einen Schwellenwert verletzen soll, bevor der Status geändert wird. |
SyncTime | string | $Config/SyncTime$ | Synchronisierungszeit | Die Synchronisierungszeit, angegeben im 24-Stunden-Format. Kann ausgelassen werden. |
CacheExpirationTime | int | $Config/CacheExpirationTime$ | Cacheablaufzeit | Gibt das maximale Alter von Informationen aus dem Cache an, die vom Workflow verwendet werden können. Kann ausgelassen werden. |
<UnitMonitorType ID="Microsoft.SQLServer.2014.DBEngine.ThreadCount.MonitorType" Accessibility="Internal" RunAs="SQL2014Core!Microsoft.SQLServer.2014.SQLProbeAccount">
<MonitorTypeStates>
<MonitorTypeState ID="Normal"/>
<MonitorTypeState ID="Error"/>
</MonitorTypeStates>
<Configuration>
<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="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="MinFreeThreadsCount" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NumSamples" 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" minOccurs="0" name="CacheExpirationTime" type="xsd:int"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
<OverrideableParameter ID="MinFreeThreadsCount" Selector="$Config/MinFreeThreadsCount$" ParameterType="int"/>
<OverrideableParameter ID="NumSamples" Selector="$Config/NumSamples$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
<OverrideableParameter ID="CacheExpirationTime" Selector="$Config/CacheExpirationTime$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DBEngine.ThreadCountMonitor.DataSourceMapped">
<ServiceName>$Config/ServiceName$</ServiceName>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SyncTime>$Config/SyncTime$</SyncTime>
<CacheExpirationTime>$Config/CacheExpirationTime$</CacheExpirationTime>
</DataSource>
<ConditionDetection ID="CSC" TypeID="SystemPerf!System.Performance.ConsecutiveSamplesCondition">
<Threshold>$Config/MinFreeThreadsCount$</Threshold>
<Direction>lessequal</Direction>
</ConditionDetection>
<ConditionDetection ID="NormalCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="ErrorCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Normal">
<Node ID="NormalCondition">
<Node ID="CSC">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="ErrorCondition">
<Node ID="CSC">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>