DHCP 性能数据筛选器映射器

Microsoft.Windows.DHCPServer.10.0.CD.PerfFilter (ConditionDetectionModuleType)


性能收集规则将使用此条件检测对象,以将选定的属性包项目映射到/转换为 SCOM 性能计数器对象。将属性包项目转换为性能计数器之后,就可以创建阈值、趋势和其他标准性能数据规则。
当托管应用程序/组件未通过标准性能计数器 API 披露检测时,或当需要高级计算性能信息时,必须使用此映射器。

Knowledge Base article:

摘要

性能收集规则将使用此条件检测对象,以将选定的属性包项目映射到/转换为 SCOM 性能计数器对象。将属性包项目转换为性能计数器之后,就可以创建阈值、趋势和其他标准性能数据规则。 当托管应用程序/组件未通过标准性能计数器 API 公开规范时,或当需要高级计算性能信息时,必须使用此映射器。

配置

对象名称:映射器中使用的对象名称。

计数器名称:映射器中使用的计数器名称。

实例名称:映射器中使用的实例名称。

Element properties:

TypeConditionDetectionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
OutputTypeSystem.Performance.Data

Member Modules:

ID Module Type TypeId RunAs 
Filter ConditionDetection System.ExpressionFilter Default
Mapper ConditionDetection System.Performance.DataGenericMapper Default

Source Code:

<ConditionDetectionModuleType ID="Microsoft.Windows.DHCPServer.10.0.CD.PerfFilter" Accessibility="Public" Batching="false" Stateful="false" PassThrough="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ObjectName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CounterName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstanceName" type="xsd:string"/>
</Configuration>
<OverrideableParameters/>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ConditionDetection ID="Mapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>$Data/Property[@Name='ObjectName']$</ObjectName>
<CounterName>$Data/Property[@Name='CounterName']$</CounterName>
<InstanceName>$Data/Property[@Name='InstanceName']$</InstanceName>
<Value>$Data/Property[@Name='Value']$</Value>
</ConditionDetection>
<ConditionDetection ID="Filter" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='ObjectName']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/ObjectName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='CounterName']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/CounterName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="Mapper">
<Node ID="Filter"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>Performance!System.Performance.Data</OutputType>
<InputTypes>
<InputType>System!System.BaseData</InputType>
</InputTypes>
</ConditionDetectionModuleType>