MSSQL on Linux: Database Replicas Discovery Data Source
Microsoft.SQLServer.Linux.DataSource.DatabaseReplicaDiscovery (DataSourceModuleType)
SQL Server Always On Database Replicas Discovery Data Source on Linux
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<DataSourceModuleType ID="Microsoft.SQLServer.Linux.DataSource.DatabaseReplicaDiscovery" Accessibility="Internal" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Discovery">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MachineName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstanceName" 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="AvailabilityReplicaId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SqlTimeoutSeconds" 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="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="SqlTimeoutSeconds" ParameterType="int" Selector="$Config/SqlTimeoutSeconds$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Linux.DataSource.DatabaseReplicaDiscoveryProbe">
<MachineName>$Config/MachineName$</MachineName>
<InstanceName>$Config/InstanceName$</InstanceName>
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<SqlTimeoutSeconds>$Config/SqlTimeoutSeconds$</SqlTimeoutSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
</DataSource>
<ConditionDetection ID="ClassMapper" TypeID="Microsoft.SQLServer.Linux.Discovery.DiscoveryDataMapper">
<Publisher>SQLDiscoveryLinux</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
<DiscoverySourceObjectId>$MPElement$</DiscoverySourceObjectId>
<DiscoverySourceManagedEntityId>$Target/Id$</DiscoverySourceManagedEntityId>
<MappingConfig>
<Value>
<CreateClassId>$MPElement[Name='Microsoft.SQLServer.Linux.DatabaseReplica']$</CreateClassId>
<FilterProperty>
<Value>
<PropertyName>MapObjectId</PropertyName>
<PropertyValue>$Config/AvailabilityReplicaId$</PropertyValue>
</Value>
</FilterProperty>
<FilterPropertyError>
<Value>
<PropertyName>AvailabilityReplicaId</PropertyName>
<PropertyValue>$Config/AvailabilityReplicaId$</PropertyValue>
</Value>
</FilterPropertyError>
<SkipProperty>
<Value>MapObjectId</Value>
</SkipProperty>
<AddProperty>
<Value>
<PropertyName>MachineName</PropertyName>
<PropertyValue>$Config/MachineName$</PropertyValue>
</Value>
<Value>
<PropertyName>InstanceName</PropertyName>
<PropertyValue>$Config/InstanceName$</PropertyValue>
</Value>
<Value>
<PropertyName>UniqueId</PropertyName>
<PropertyValue>$Config/AvailabilityReplicaId$</PropertyValue>
</Value>
</AddProperty>
</Value>
</MappingConfig>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="ClassMapper">
<Node ID="DS"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>