@FunctionalInterface public static interface MonitoringWatchCollector.WatchBuilder
| Modifier and Type | Method and Description |
|---|---|
default MonitoringWatchCollector.WatchBuilder |
amber(long startThreshold,
Number startFor,
boolean startOnAverage,
Long stopTheshold,
Number stopFor,
boolean stopOnAverage) |
default MonitoringWatchCollector.WatchBuilder |
green(long startThreshold,
Number startFor,
boolean startOnAverage,
Long stopTheshold,
Number stopFor,
boolean stopOnAverage) |
default MonitoringWatchCollector.WatchBuilder |
red(long startThreshold,
Number startFor,
boolean startOnAverage,
Long stopTheshold,
Number stopFor,
boolean stopOnAverage) |
MonitoringWatchCollector.WatchBuilder |
with(String level,
long startThreshold,
Number startForLast,
boolean startOnAverage,
Long stopTheshold,
Number stopForLast,
boolean stopOnAverage)
Start and stop thresholds are given in case a condition exist, otherwise use null.
|
MonitoringWatchCollector.WatchBuilder with(String level, long startThreshold, Number startForLast, boolean startOnAverage, Long stopTheshold, Number stopForLast, boolean stopOnAverage)
Integer positive values to refer to n times in a row,
zero includes all available values,
negative values refer to any 1 value in last abs(n) values.
- Long values to refer to n milliseconds
- null to not use any for condition, which is same as matching the start condition a single time by
the most recent valuelevel - "red", "amber", or "green"startThreshold - the allowed upper limit, anything above causes an alertstartForLast - if given, start condition needs to be met for the specified continuancestartOnAverage - true if start threshold should be compared to the average of the last pointsstopTheshold - if given, the lower, anything below stops the alertstopForLast - if given, stop condition needs to be met for the specified continuancestopOnAverage - true if stop threshold should be compared to the average of the last pointsdefault MonitoringWatchCollector.WatchBuilder red(long startThreshold, Number startFor, boolean startOnAverage, Long stopTheshold, Number stopFor, boolean stopOnAverage)
default MonitoringWatchCollector.WatchBuilder amber(long startThreshold, Number startFor, boolean startOnAverage, Long stopTheshold, Number stopFor, boolean stopOnAverage)
default MonitoringWatchCollector.WatchBuilder green(long startThreshold, Number startFor, boolean startOnAverage, Long stopTheshold, Number stopFor, boolean stopOnAverage)
Copyright © 2020. All rights reserved.