发现持续时间计算
Microsoft.SystemCenter.DataSource.DiscoveryDurationCalculation (DataSourceModuleType)
计算网络发现已持续运行的秒数
Element properties:
Member Modules:
Source Code:
<DataSourceModuleType ID="Microsoft.SystemCenter.DataSource.DiscoveryDurationCalculation" Accessibility="Internal">
<Configuration>
<xsd:element name="CounterName" type="xsd:string"/>
<xsd:element name="EventParam" type="xsd:string"/>
</Configuration>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="EventDS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>.</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">OpsMgr Network Discovery</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">12008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
<ConditionDetection ID="PerfMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>OpsMgr Network Discovery</ObjectName>
<CounterName>$Config/CounterName$</CounterName>
<InstanceName>$Data/Params/Param[3]$</InstanceName>
<Value>$Data/Params/Param[$Config/EventParam$]$</Value>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="PerfMapper">
<Node ID="EventDS"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>Performance!System.Performance.Data</OutputType>
</DataSourceModuleType>