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) HistogramSettings
buckets
(Collection<Double> buckets) boolean
int
hashCode()
static HistogramSettings
settings()
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:
toString
in classBaseMetricSettings<HistogramSettings>
-
equals
- Overrides:
equals
in classBaseMetricSettings<HistogramSettings>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseMetricSettings<HistogramSettings>
-