@FunctionalInterface public interface MonitoringWatchCollector
MonitoringDataSource to start watches without making the
monitoring implementation dependent on the source module or vice versa. Therefore none of the implementation specific
classes is used which causes the watch(CharSequence, String, String) and MonitoringWatchCollector.WatchBuilder methods.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MonitoringWatchCollector.WatchBuilder |
| Modifier and Type | Method and Description |
|---|---|
MonitoringWatchCollector.WatchBuilder |
watch(CharSequence series,
String name,
String unit)
Starts creation of a watch with the given name and unit watching the given key metric.
|
MonitoringWatchCollector.WatchBuilder watch(CharSequence series, String name, String unit)
series - metric key name similar to collect method in MonitoringDataCollectorname - watches installed using this method use the name to identify the watch they refer to.unit - "count", "percent", "bytes", "sec", "ms" or "ns"IllegalArgumentException - when unit is not one of the recognised unit short namesCopyright © 2020. All rights reserved.