Windows 上的 MSSQL: Windows 上的資料來源資料庫引擎資源集區
Microsoft.SQLServer.Windows.DataSource.ResourcePool (DataSourceModuleType)
此資料來源會探索指定 SQL Server 資料庫引擎執行個體的所有資源集區。
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<DataSourceModuleType ID="Microsoft.SQLServer.Windows.DataSource.ResourcePool" 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="MonitoringType" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="OnlyInMemoryOLTPPools" 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="OnlyInMemoryOLTPPools" ParameterType="string" Selector="$Config/OnlyInMemoryOLTPPools$"/>
<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>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Windows.DataSource.ResourcePoolProbe">
<MachineName>$Config/MachineName$</MachineName>
<InstanceName>$Config/InstanceName$</InstanceName>
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<MonitoringType>$Config/MonitoringType$</MonitoringType>
<SqlTimeoutSeconds>$Config/SqlTimeoutSeconds$</SqlTimeoutSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
</DataSource>
<ConditionDetection ID="FilterInMemoryOLTP" TypeID="Microsoft.SQLServer.Windows.ConditionDetection.ResourcePoolDiscoveryFilter">
<OnlyInMemoryOLTPPools>$Config/OnlyInMemoryOLTPPools$</OnlyInMemoryOLTPPools>
<Publisher>SQLDiscoveryWindows</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
</ConditionDetection>
<ConditionDetection ID="ClassMapper" TypeID="Microsoft.SQLServer.Windows.Discovery.DiscoveryDataMapper">
<Publisher>SQLDiscoveryWindows</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
<DiscoverySourceObjectId>$MPElement$</DiscoverySourceObjectId>
<DiscoverySourceManagedEntityId>$Target/Id$</DiscoverySourceManagedEntityId>
<MappingConfig>
<Value>
<FilterProperty>
<Value>
<PropertyName>ObjectType</PropertyName>
<PropertyValue>1</PropertyValue>
</Value>
</FilterProperty>
<SkipProperty>
<Value>ObjectType</Value>
</SkipProperty>
<AddProperty>
<Value>
<PropertyName>MachineName</PropertyName>
<PropertyValue>$Config/MachineName$</PropertyValue>
</Value>
<Value>
<PropertyName>InstanceName</PropertyName>
<PropertyValue>$Config/InstanceName$</PropertyValue>
</Value>
</AddProperty>
</Value>
</MappingConfig>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="ClassMapper">
<Node ID="FilterInMemoryOLTP">
<Node ID="DS"/>
</Node>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>