IIS WCF Web 服务发现规则

Microsoft.SystemCenter.Apm.Wcf.IIS2008.Discovery (Discovery)

用于查找部署到 IIS 的 WCF 服务的发现规则。发现所使用的默认模式用于在虚拟目录中查找 .svc 文件,如果找到任何此类文件,则将创建 WCF 服务终结点。要指定表示 WCF 服务的附加文件类型,请替代 AdditionalExtensions 属性并提供分号(;)分隔的文件扩展名的列表。新文件扩展名字符串列表的示例为 "foo;bar",它指定诸如 myFile.foo 和 myFile.bar 之类的文件,这些文件表示 WCF 服务。

Element properties:

TargetMicrosoft.SystemCenter.Apm.ApmAgent
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.Apm.IIS2008WcfApplicationDiscoveryDataSource Default

Source Code:

<Discovery ID="Microsoft.SystemCenter.Apm.Wcf.IIS2008.Discovery" Priority="Normal" Remotable="false" ConfirmDelivery="false" Target="AI!Microsoft.SystemCenter.Apm.ApmAgent" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SystemCenter.Apm.IIS.2008.WCFServiceApplication">
<Property TypeID="Microsoft.SystemCenter.Apm.IIS.2008.WCFServiceApplication" PropertyID="ApplicationVRoot"/>
<Property TypeID="Microsoft.SystemCenter.Apm.IIS.2008.WCFServiceApplication" PropertyID="IISApplicationName"/>
<Property TypeID="Microsoft.SystemCenter.Apm.IIS.2008.WCFServiceApplication" PropertyID="Name"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.Apm.IIS2008WcfApplicationDiscoveryDataSource">
<ComputerPrincipalName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerPrincipalName>
<DiscoveryType>0</DiscoveryType>
<DiscoverySourceObjectId>$MPElement$</DiscoverySourceObjectId>
<DiscoverySourceManagedEntityId>$Target/Id$</DiscoverySourceManagedEntityId>
<DiscoverEmptyDirectoriesAsWcfApplication>false</DiscoverEmptyDirectoriesAsWcfApplication>
<AdditionalExtensions/>
<IntervalSeconds>14400</IntervalSeconds>
</DataSource>
</Discovery>