@InterfaceAudience.Private public class MutableHistogram extends MutableMetric implements MetricHistogram
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME| Constructor and Description |
|---|
MutableHistogram(MetricsInfo info) |
MutableHistogram(String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val)
Add a single value to a histogram's stream of values.
|
long |
getMax() |
double |
getMean() |
long |
getMin() |
void |
snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
public void add(long val)
MetricHistogramadd in interface MetricHistogrampublic long getMax()
public long getMin()
public double getMean()
public void snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all)