formatting

This commit is contained in:
Jonathan Shook 2023-12-09 17:17:11 -06:00
parent 16e3e587aa
commit aad06bed09
2 changed files with 15 additions and 11 deletions

View File

@ -56,13 +56,6 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
ERROR
}
private NBBufferedContainer getContext(String name) {
return containers.computeIfAbsent(
name,
n -> NBContainer.builder().name(n).build(this)
);
}
public NBSession(
NBLabeledElement labelContext,
String sessionName
@ -206,5 +199,12 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
clientMetricChecker.addRatioMetricToCheck(cpuUserGauge, cpuTotalGauge, 50.0, true);
}
private NBBufferedContainer getContext(String name) {
return containers.computeIfAbsent(
name,
n -> NBContainer.builder().name(n).build(this)
);
}
}

View File

@ -233,13 +233,17 @@ public class ConsoleReporter extends PeriodicTaskComponent {
for (NBMetric metric : summaryMetrics) {
if (metric instanceof NBMetricGauge) {
gauges.add((NBMetricGauge) metric);
} if (metric instanceof NBMetricCounter) {
}
if (metric instanceof NBMetricCounter) {
counters.add((NBMetricCounter) metric);
} if (metric instanceof NBMetricHistogram) {
}
if (metric instanceof NBMetricHistogram) {
histograms.add((NBMetricHistogram) metric);
} if (metric instanceof NBMetricMeter) {
}
if (metric instanceof NBMetricMeter) {
meters.add((NBMetricMeter) metric);
} if (metric instanceof NBMetricTimer) {
}
if (metric instanceof NBMetricTimer) {
timers.add((NBMetricTimer) metric);
}
}