Тип монитора "доступность базы данных распространения с подписчика"
RunAs | Default |
Accessibility | Internal |
Support Monitor Recalculate | False |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
Trigger | DataSource | Microsoft.SQLServer.2014.Replication.DataSource.DistributorAvailabilityFromSubscriber | Default |
IsError | ConditionDetection | System.ExpressionFilter | Default |
IsSuccessful | ConditionDetection | System.ExpressionFilter | Default |
ID | ParameterType | Selector | Display Name | Description |
---|---|---|---|---|
Subscriber | string | $Config/Subscriber$ | Имена подписчиков | Список имен подписчиков, которые должны использоваться как источник проверки, разделенный символом "|" |
Transport | string | $Config/Transport$ | Транспорт | Префикс протокола для доступа к службе wsman |
Prefix | string | $Config/Prefix$ | Префикс | Имя службы wsman |
Port | int | $Config/Port$ | Порт | Порт службы wsman |
DatabaseNames | string | $Config/DatabaseNames$ | Имена баз данных | Список имен баз данных, которые должны быть проверены, разделенный символом "," |
CredSspEnabled | bool | $Config/CredSspEnabled$ | CredSsp включено | Означает, что перед выполнением этого рабочего процесса был включен поставщик CredSsp. После запуска данный поставщик останется включенным. |
IntervalSeconds | int | $Config/IntervalSeconds$ | Интервал (секунды) | Повторяющийся интервал времени в секундах, по истечении которого запускается рабочий процесс. |
SqlTimeout | int | $Config/SqlTimeout$ | Время ожидания для подключения к базе данных (секунды) | Рабочий процесс завершится ошибкой и зарегистрирует событие, если он не сможет получить доступ к базе данных за указанный промежуток времени. |
SyncTime | string | $Config/SyncTime$ | Время синхронизации | Время синхронизации |
TimeoutSeconds | int | $Config/TimeoutSeconds$ | Время ожидания (секунды) | Задает допустимое время выполнения рабочего процесса, перед тем как он будет закрыт и отмечен как сбойный. |
<UnitMonitorType ID="Microsoft.SQLServer.2014.Replication.MonitorType.DistributorAvailabilityFromSubscriberMonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="Error"/>
<MonitorTypeState ID="Health"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Distributor" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Subscriber" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Domain" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="User" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Pass" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Transport" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Prefix" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Port" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DatabaseNames" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CredSspEnabled" type="xsd:boolean"/>
<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="SqlTimeout" 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="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Subscriber" ParameterType="string" Selector="$Config/Subscriber$"/>
<OverrideableParameter ID="Transport" ParameterType="string" Selector="$Config/Transport$"/>
<OverrideableParameter ID="Prefix" ParameterType="string" Selector="$Config/Prefix$"/>
<OverrideableParameter ID="Port" ParameterType="int" Selector="$Config/Port$"/>
<OverrideableParameter ID="DatabaseNames" ParameterType="string" Selector="$Config/DatabaseNames$"/>
<OverrideableParameter ID="CredSspEnabled" ParameterType="bool" Selector="$Config/CredSspEnabled$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SqlTimeout" ParameterType="int" Selector="$Config/SqlTimeout$"/>
<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.2014.Replication.DataSource.DistributorAvailabilityFromSubscriber">
<Distributor>$Config/Distributor$</Distributor>
<Subscriber>$Config/Subscriber$</Subscriber>
<Domain>$Config/Domain$</Domain>
<User>$Config/User$</User>
<Pass>$Config/Pass$</Pass>
<Transport>$Config/Transport$</Transport>
<Prefix>$Config/Prefix$</Prefix>
<Port>$Config/Port$</Port>
<DatabaseNames>$Config/DatabaseNames$</DatabaseNames>
<CredSspEnabled>$Config/CredSspEnabled$</CredSspEnabled>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SqlTimeout>$Config/SqlTimeout$</SqlTimeout>
<SyncTime>$Config/SyncTime$</SyncTime>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</DataSource>
<ConditionDetection ID="IsSuccessful" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Success</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="IsError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Error</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="IsError">
<Node ID="Trigger"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Health">
<Node ID="IsSuccessful">
<Node ID="Trigger"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>