Performance Rule (Optimized collection)

NiCE.LogFile.Library.Performance.Rule.Optimized.Simple.Filtered.Template (Template)

Source Code:

<Template ID="NiCE.LogFile.Library.Performance.Rule.Optimized.Simple.Filtered.Template" Purpose="RuleCreation">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
<SchemaType>SCRT!Microsoft.SystemCenter.RuleTemplates.ManagementPackCategoryType</SchemaType>
<SchemaType>SCRT!Microsoft.SystemCenter.RuleTemplates.ManagementPackIdentifiers</SchemaType>
<SchemaType>NiCE.LogFile.Library.NiCEProvidersSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ID" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Enabled" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Target" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Category" type="ManagementPackCategoryType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="LocaleId" type="ManagementPackLanguageIdentifier"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="LogFileProviderConfig" type="SimpleLogFileProviderConfigType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Expression" type="ExpressionType"/>
<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" minOccurs="0" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Value" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Tolerance" type="xsd:double"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="0" maxOccurs="1" name="ToleranceType">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Absolute"/>
<xsd:enumeration value="Percentage"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MaximumSampleSeparation" type="xsd:unsignedInt"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="Performance"/>
<Reference ID="SC"/>
<Reference ID="Health"/>
<Reference ID="Self"/>
<Reference ID="SCDW"/>
</References>
<Implementation>
<Monitoring>
<Rules>
<Rule ID="$TemplateConfig/ID$" Target="$TemplateConfig/Target$" Enabled="$TemplateConfig/Enabled$" ConfirmDelivery="true" Remotable="false">
<Category>$TemplateConfig/Category$</Category>
<DataSources>
<DataSource ID="DS" TypeID="$Reference/Self$NiCE.LogFile.Library.Performance.Optimized.Simple.Filtered.LogFileProvider.DS">
<LogFileProviderConfig>$TemplateConfig/LogFileProviderConfig$</LogFileProviderConfig>
<Expression>$TemplateConfig/Expression$</Expression>
<ObjectName>$TemplateConfig/ObjectName$</ObjectName>
<CounterName>$TemplateConfig/CounterName$</CounterName>
<InstanceName>$TemplateConfig/InstanceName$</InstanceName>
<Value>$TemplateConfig/Value$</Value>
<Tolerance>$TemplateConfig/Tolerance$</Tolerance>
<ToleranceType>$TemplateConfig/ToleranceType$</ToleranceType>
<MaximumSampleSeparation>$TemplateConfig/MaximumSampleSeparation$</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="$Reference/SC$Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="$Reference/SCDW$Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>
</Rules>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/ID$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>