Class HistogramConfig
- java.lang.Object
-
- org.forgerock.monitoring.api.instrument.histogram.HistogramConfig
-
- All Implemented Interfaces:
org.forgerock.monitoring.api.instrument.internal.Mergeable<HistogramConfig>
public class HistogramConfig extends Object implements org.forgerock.monitoring.api.instrument.internal.Mergeable<HistogramConfig>
ForgeRock changes: - Removed @incubating annotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HistogramConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static HistogramConfig
DEFAULT
static HistogramConfig
NONE
-
Constructor Summary
Constructors Constructor Description HistogramConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HistogramConfig.Builder
builder()
NavigableSet<Long>
getHistogramBuckets(boolean supportsAggregablePercentiles)
Integer
getHistogramBufferLength()
Duration
getHistogramExpiry()
Long
getMaximumExpectedValue()
Long
getMinimumExpectedValue()
double[]
getPercentiles()
long[]
getSlaBoundaries()
Boolean
isPercentileHistogram()
boolean
isPublishingHistogram()
HistogramConfig
merge(HistogramConfig parent)
Merge the current value set with that of the supplied object.
-
-
-
Field Detail
-
DEFAULT
public static final HistogramConfig DEFAULT
-
NONE
public static final HistogramConfig NONE
-
-
Method Detail
-
builder
public static HistogramConfig.Builder builder()
-
merge
public HistogramConfig merge(HistogramConfig parent)
Description copied from interface:org.forgerock.monitoring.api.instrument.internal.Mergeable
Merge the current value set with that of the supplied object. The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.- Specified by:
merge
in interfaceorg.forgerock.monitoring.api.instrument.internal.Mergeable<HistogramConfig>
- Parameters:
parent
- the object to merge with- Returns:
- the result of the merge operation
-
isPublishingHistogram
public boolean isPublishingHistogram()
-
getHistogramBuckets
public NavigableSet<Long> getHistogramBuckets(boolean supportsAggregablePercentiles)
-
getPercentiles
@Nullable public double[] getPercentiles()
-
getSlaBoundaries
@Nullable public long[] getSlaBoundaries()
-
-