Zbierz liczbę komunikatów w kolejce — ustalanie linii bazowej
Microsoft.MSMQ.10.0.Rule.CollectQueueMessageCount.Learning (Rule)
Knowledge Base article:
Element properties:
Member Modules:
Source Code:
<Rule ID="Microsoft.MSMQ.10.0.Rule.CollectQueueMessageCount.Learning" Enabled="true" Target="Microsoft.MSMQ.10.0.Queues" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.MSMQ.10.0.DataSource.Queue.Statistics.PerformanceRaw">
<IntervalSeconds>900</IntervalSeconds>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<QueuePath>$Target/Property[Type='Microsoft.MSMQ.10.0.Queue']/PathName$</QueuePath>
<CounterName>Messages In Queue</CounterName>
<LogDetail>false</LogDetail>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="SystemPerf!System.Performance.SignatureCreatorWithoutCompression">
<SignatureID>Microsoft.MSMQ.10.0.Monitor.QueueMessageCount.Baseline.Signature</SignatureID>
<BusinessCycleLengthUnit>Day</BusinessCycleLengthUnit>
<BusinessCycleLengthInGivenUnit>1</BusinessCycleLengthInGivenUnit>
<EffectiveSamplingPeriodInSeconds>300</EffectiveSamplingPeriodInSeconds>
<Sensitivity>2.81</Sensitivity>
<LearningSettings>
<LearningType>Continuous</LearningType>
<Offset1>3</Offset1>
<Offset2>3</Offset2>
<Offset3>3</Offset3>
<LearningRate>2</LearningRate>
</LearningSettings>
<SignatureCollectionSettings>
<DBUpdatePeriodInSeconds>900</DBUpdatePeriodInSeconds>
</SignatureCollectionSettings>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="SC!Microsoft.SystemCenter.CollectSignature"/>
</WriteActions>
</Rule>