com.xqbase.metric.common.MetricEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xqbase-metric-common-jdk17 Show documentation
Show all versions of xqbase-metric-common-jdk17 Show documentation
a lightweight metric framework for aggregating, collecting and showing metric data - common part
package com.xqbase.metric.common;
import java.util.HashMap;
public class MetricEntry {
private MetricKey key;
private MetricValue value;
public MetricEntry(MetricKey key, MetricValue value) {
this.key = key;
this.value = value;
}
public String getName() {
return key.getName();
}
public HashMap getTagMap() {
return key.getTagMap();
}
public long getCount() {
return value.getCount();
}
public double getSum() {
return value.getSum();
}
public double getMax() {
return value.getMax();
}
public double getMin() {
return value.getMin();
}
public double getSqr() {
return value.getSqr();
}
}