|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.utils.thresholds.ThresholdsEvaluatorBuilder
public class ThresholdsEvaluatorBuilder
Builds a ThresholdsEvaluator object.
| Constructor Summary | |
|---|---|
ThresholdsEvaluatorBuilder()
Default constructor. |
|
| Method Summary | |
|---|---|
ThresholdsEvaluator |
create()
|
ThresholdsEvaluatorBuilder |
withLegacyThreshold(String metric,
String okRange,
String warnRange,
String critRange)
This method allows to specify thresholds using the old format. |
ThresholdsEvaluatorBuilder |
withThreshold(String threshold)
Adds a threshold to the threshold evaluator object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdsEvaluatorBuilder()
| Method Detail |
|---|
public final ThresholdsEvaluatorBuilder withThreshold(String threshold)
throws BadThresholdException
threshold - The threhsold text
BadThresholdException - -
public final ThresholdsEvaluatorBuilder withLegacyThreshold(String metric,
String okRange,
String warnRange,
String critRange)
throws BadThresholdException
metric - The metric for which this threshold must be configuredokRange - The ok range (can be null)warnRange - The warning range (can be null)critRange - The critical range (can be null).
BadThresholdException - If the threshold can't be parsed.public final ThresholdsEvaluator create()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||