
com.librato.metrics.reporter.MetricExpansionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-librato Show documentation
Show all versions of metrics-librato Show documentation
The LibratoReporter class runs in the background, publishing
metrics to the Librato Metrics API at the
specified interval.
The newest version!
package com.librato.metrics.reporter;
import java.util.EnumSet;
import java.util.Set;
/**
* Configures how to report "expanded" metrics derived from meters and histograms (e.g. percentiles,
* rates, etc). Default is to report everything.
*
* @see ExpandedMetric
*/
public class MetricExpansionConfig {
public static MetricExpansionConfig ALL = new MetricExpansionConfig(EnumSet.allOf(ExpandedMetric.class));
private final Set enabled;
public MetricExpansionConfig(Set enabled) {
this.enabled = EnumSet.copyOf(enabled);
}
public boolean isSet(ExpandedMetric metric) {
return enabled.contains(metric);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy