NiCEFileAgeProvider.Triggered.PerformanceOptimized.RuleTemplateNot Filtered

NiCEFileAgeProvider.Triggered.PerformanceOptimized.RuleTemplate (Template)

Source Code:

<Template ID="NiCEFileAgeProvider.Triggered.PerformanceOptimized.RuleTemplate" Purpose="RuleCreation">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
<SchemaType>Health!System.Health.AlertSchema</SchemaType>
<SchemaType>MSR!Microsoft.SystemCenter.RuleTemplates.ManagementPackCategoryType</SchemaType>
<SchemaType>MSR!Microsoft.SystemCenter.RuleTemplates.ManagementPackIdentifiers</SchemaType>
<SchemaType>NiCESchedulerSchema</SchemaType>
<SchemaType>NiCEProcessSchema</SchemaType>
<SchemaType>NiCEFileAgeProviderSchema</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="Schedule" type="SchedulerConfigType" minOccurs="0" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Process" type="ProcessConfigType" minOccurs="0" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="FileAgeProvider" type="FileAgeProviderConfigType" minOccurs="0" maxOccurs="1"/>
<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"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SamplingPeriodInSeconds" type="xsd:unsignedInt"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="Windows"/>
<Reference ID="SC"/>
<Reference ID="Health"/>
<Reference ID="Self"/>
<Reference ID="Perf"/>
<Reference ID="MSDL"/>
</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$NiCEFileAgeProvider.Triggered.PerformanceOptimized.DS">
<Schedule>$TemplateConfig/Schedule$</Schedule>
<Process>$TemplateConfig/Process$</Process>
<FileAgeProvider>$TemplateConfig/FileAgeProvider$</FileAgeProvider>
<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>
<SamplingPeriodInSeconds>$TemplateConfig/SamplingPeriodInSeconds$</SamplingPeriodInSeconds>
</DataSource>
</DataSources>
<WriteActions>
<!--<WriteAction ID="WriteToDB" TypeID="$Reference/SC$Microsoft.SystemCenter.CollectPerformanceData" />
<WriteAction ID="WriteToDW" TypeID="$Reference/MSDL$Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />-->
<WriteAction ID="WriteToDB" TypeID="$Reference/SC$Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="MSDL!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>
</Rules>
</Monitoring>
<Presentation>
<StringResources>
<StringResource ID="$TemplateConfig/ID$.AlertMessage"/>
</StringResources>
</Presentation>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/ID$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>