use of com.yahoo.metrics.Metric in project vespa by vespa-engine.
the class ProgressPrinter method getOkMessageCount.
public long getOkMessageCount(RouteMetricSet metrics) {
SumMetric sum = (SumMetric) metrics.getMetric("total");
MetricSet ms = (MetricSet) sum.generateSum();
if (ms != null) {
Metric latency = ms.getMetric("latency");
if (latency != null) {
return latency.getLongValue("count");
}
}
return 0;
}
Aggregations