Class HistogramSettings
java.lang.Object
eu.rarogsoftware.rarog.platform.api.metrics.BaseMetricSettings<HistogramSettings>
eu.rarogsoftware.rarog.platform.api.metrics.HistogramSettings
Histogram metric settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]buckets()buckets(double... buckets) Sets the upper bounds of buckets for the histogram.(package private) HistogramSettingsbuckets(Collection<Double> buckets) booleaninthashCode()static HistogramSettingssettings()toString()Methods inherited from class eu.rarogsoftware.rarog.platform.api.metrics.BaseMetricSettings
description, description, labels, labels, labels, name, name, unit, unit
-
Constructor Details
-
HistogramSettings
public HistogramSettings()
-
-
Method Details
-
settings
- Returns:
- empty instance of settings object. Convenience method.
-
buckets
Sets the upper bounds of buckets for the histogram.- Parameters:
buckets- upper bounds of buckets for the histogram- Returns:
- settings object
-
buckets
- Parameters:
buckets- upper bounds of buckets for the histogram- Returns:
- settings object
-
buckets
public double[] buckets()- Returns:
- upper bounds of buckets for the histogram
-
toString
- Overrides:
toStringin classBaseMetricSettings<HistogramSettings>
-
equals
- Overrides:
equalsin classBaseMetricSettings<HistogramSettings>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseMetricSettings<HistogramSettings>
-