Package org.opennms.netmgt.threshd
Class ThresholdEvaluatorRelativeChange
- java.lang.Object
-
- org.opennms.netmgt.threshd.ThresholdEvaluatorRelativeChange
-
- All Implemented Interfaces:
ThresholdEvaluator
public class ThresholdEvaluatorRelativeChange extends Object implements ThresholdEvaluator
Implements a relative change threshold check. A 'value' setting of less than 1.0 means that a threshold will fire if the current value is less than or equal to the previous value multiplied by the 'value' setting. A 'value' setting greater than 1.0 causes the threshold to fire if the current value is greater than or equal to the previous value multiplied by the 'value' setting. A 'value' setting of 1.0 (unity) is not allowed, as it represents no change. Zero valued samples (0.0) are ignored, as 0.0 multiplied by anything is 0.0 (if they were not ignored, an interface that gets no traffic would always trigger a threshold, for example).- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThresholdEvaluatorRelativeChange.ThresholdEvaluatorStateRelativeChange
-
Constructor Summary
Constructors Constructor Description ThresholdEvaluatorRelativeChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThresholdEvaluatorState
getThresholdEvaluatorState(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
getThresholdEvaluatorStateboolean
supportsType(ThresholdType type)
supportsType
-
-
-
Method Detail
-
getThresholdEvaluatorState
public ThresholdEvaluatorState getThresholdEvaluatorState(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
getThresholdEvaluatorState
- Specified by:
getThresholdEvaluatorState
in interfaceThresholdEvaluator
- Parameters:
threshold
- aBaseThresholdDefConfigWrapper
object.- Returns:
- a
ThresholdEvaluatorState
object.
-
supportsType
public boolean supportsType(ThresholdType type)
supportsType
- Specified by:
supportsType
in interfaceThresholdEvaluator
- Parameters:
type
- aString
object.- Returns:
- a boolean.
-
-