<UnitMonitor ID="FailureCountDelta" Accessibility="Internal" Enabled="true" Target="Server" ParentMonitorID="Performance" Remotable="true" Priority="Normal" TypeID="Performance!System.Performance.DeltaThreshold" ConfirmDelivery="false">
<Category>Performance</Category>
<AlertSettings ...>
</AlertSettings>
<Configuration>
......
<Frequency>900</Frequency>
<Threshold>3</Threshold>
<NumSamples>1</NumSamples>
<Absolute>true</Absolute>
</Configuration>
</UnitMonitor>
Frequency: 采样频率,每隔900秒采样一次
Threshold: 临界值, 与上次采样结果比较,如果差大于该值,trigger alert.
NumSamples: 采样结果在内存中保存几次,不包含本次采样,如果为1,则表示本次与上次比较,如果为n, 表示本次与上n次的平均值比较。
Absolute: 与上次比较时是直接取绝对差值,还是取增加或者 减少的百分比。
Notice:
Absolute设置项仅在DeltaThreshold类型的monitor中存在, AverageThreshold中是没有的,因为是求平均值,并不取差值。
AverageThreshold类型常用于响应时间,处理时间的monitor.