Class StepDistributionSummary
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractDistributionSummary
io.micrometer.core.instrument.step.StepDistributionSummary
- All Implemented Interfaces:
HistogramSupport
,DistributionSummary
,Meter
Step-normalized
DistributionSummary
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.DistributionSummary
DistributionSummary.Builder
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.AbstractDistributionSummary
histogram
-
Constructor Summary
ModifierConstructorDescriptionStepDistributionSummary
(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, boolean supportsAggregablePercentiles) Create a newStepDistributionSummary
.protected
StepDistributionSummary
(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, Histogram histogram) Create a newStepDistributionSummary
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
count()
double
max()
measure()
Get a set of measurements.protected void
recordNonNegative
(double amount) double
Methods inherited from class io.micrometer.core.instrument.AbstractDistributionSummary
defaultHistogram, record, takeSnapshot
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.DistributionSummary
histogramCountAtValue, mean, percentile
Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshot
-
Constructor Details
-
StepDistributionSummary
public StepDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, boolean supportsAggregablePercentiles) Create a newStepDistributionSummary
.- Parameters:
id
- IDclock
- clockdistributionStatisticConfig
- distribution statistic configurationscale
- scalestepMillis
- step in millisecondssupportsAggregablePercentiles
- whether it supports aggregable percentiles
-
StepDistributionSummary
protected StepDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, Histogram histogram) Create a newStepDistributionSummary
.- Parameters:
id
- IDclock
- clockdistributionStatisticConfig
- distribution static configurationscale
- scalestepMillis
- step in millisecondshistogram
- histogram- Since:
- 1.11.1
-
-
Method Details
-
recordNonNegative
protected void recordNonNegative(double amount) - Specified by:
recordNonNegative
in classAbstractDistributionSummary
-
count
public long count()- Specified by:
count
in interfaceDistributionSummary
- Returns:
- The number of times that record has been called since this timer was created.
-
totalAmount
public double totalAmount()- Specified by:
totalAmount
in interfaceDistributionSummary
- Returns:
- The total amount of all recorded events.
-
max
public double max()- Specified by:
max
in interfaceDistributionSummary
- Returns:
- The maximum time of a single event.
-
measure
Description copied from interface:Meter
Get a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.- Specified by:
measure
in interfaceDistributionSummary
- Specified by:
measure
in interfaceMeter
- Returns:
- The set of measurements that represents the instantaneous value of this meter.
-
_closingRollover
public void _closingRollover()
-