Réplication MSSQL 2012 : type d’analyse Abonnements non synchronisés du serveur de distribution

Microsoft.SQLServer.2012.Replication.MonitorType.DistributorUnsyncSubscriptions (UnitMonitorType)

Abonnements non synchronisés pour le type d'analyse du serveur de distribution

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
Trigger DataSource Microsoft.SQLServer.2012.Replication.DataSource.DistributorUnsyncSubscriptionsMonitor Default
IsHealth ConditionDetection System.ExpressionFilter Default
IsWarning ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
SqlTimeoutint$Config/SqlTimeout$Délai d’attente pour la connexion de base de données (secondes)Le workflow échoue et enregistre un événement s’il ne peut pas accéder à la base de données pendant la période spécifiée.
ThresholdPendingCommandForSubscriptionint$Config/ThresholdPendingCommandForSubscription$Seuil par abonnementSeuil par abonnement
ThresholdUnhealthySubscriptionsCountint$Config/ThresholdUnhealthySubscriptionsCount$Seuil du nombre d'abonnements non intègresSeuil du nombre d'abonnements non intègres
NumSamplesint$Config/NumSamples$Nombre d'échantillonsIndique le nombre de dépassements de seuil d'une valeur mesurée avant la modification de l'état.
IntervalSecondsint$Config/IntervalSeconds$Intervalle (secondes)Intervalle de temps récurrent en secondes, pendant lequel le workflow est exécuté.
SyncTimestring$Config/SyncTime$Heure de synchronisationHeure de synchronisation
TimeoutSecondsint$Config/TimeoutSeconds$Délai d'attente (secondes)Spécifie la durée pendant laquelle le flux de travail est autorisé à s'exécuter avant d'être fermé et marqué comme ayant échoué.

Source Code:

<UnitMonitorType ID="Microsoft.SQLServer.2012.Replication.MonitorType.DistributorUnsyncSubscriptions" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="Warning"/>
<MonitorTypeState ID="Health"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SqlTimeout" type="xsd:integer"/>
<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="ThresholdPendingCommandForSubscription" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ThresholdUnhealthySubscriptionsCount" 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="IntervalSeconds" type="xsd:int"/>
<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="TimeoutSeconds" type="xsd:integer" minOccurs="0" maxOccurs="1"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="SqlTimeout" ParameterType="int" Selector="$Config/SqlTimeout$"/>
<OverrideableParameter ID="ThresholdPendingCommandForSubscription" Selector="$Config/ThresholdPendingCommandForSubscription$" ParameterType="int"/>
<OverrideableParameter ID="ThresholdUnhealthySubscriptionsCount" Selector="$Config/ThresholdUnhealthySubscriptionsCount$" ParameterType="int"/>
<OverrideableParameter ID="NumSamples" Selector="$Config/NumSamples$" ParameterType="int"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="Trigger" TypeID="Microsoft.SQLServer.2012.Replication.DataSource.DistributorUnsyncSubscriptionsMonitor">
<SqlTimeout>$Config/SqlTimeout$</SqlTimeout>
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<ThresholdPendingCommandForSubscription>$Config/ThresholdPendingCommandForSubscription$</ThresholdPendingCommandForSubscription>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</DataSource>
<ConditionDetection ID="IsWarning" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='DistributorUnsyncSubscriptions']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Integer">$Config/ThresholdUnhealthySubscriptionsCount$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='DistributorUnsyncSubscriptions']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="Integer">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
<SuppressionSettings>
<MatchCount>$Config/NumSamples$</MatchCount>
<SampleCount>$Config/NumSamples$</SampleCount>
</SuppressionSettings>
</ConditionDetection>
<ConditionDetection ID="IsHealth" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='DistributorUnsyncSubscriptions']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Integer">$Config/ThresholdUnhealthySubscriptionsCount$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='DistributorUnsyncSubscriptions']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Warning">
<Node ID="IsWarning">
<Node ID="Trigger"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Health">
<Node ID="IsHealth">
<Node ID="Trigger"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>