fr.ippon.measures.HistogramMeasure 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.Histogram;
public class HistogramMeasure extends SnapshotMeasure {
private Long count;
public HistogramMeasure(String name, Histogram histogram) {
super(name, "histogram", histogram.getSnapshot());
this.count = histogram.getCount();
}
public Long getCount() {
return count;
}
}