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>