fr.ippon.measures.GaugeMeasure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-spark-reporter Show documentation
Show all versions of metrics-spark-reporter Show documentation
A reporter for Apache Spark which announces measurements
to a Spark Streaming application.
package fr.ippon.measures;
import com.codahale.metrics.Gauge;
public class GaugeMeasure extends Measure {
private Object value;
public GaugeMeasure(String name, Gauge gauge) {
super(name, "gauge");
this.value = gauge.getValue();
}
public Object getValue() {
return value;
}
}