Class NoopDistributionSummary
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.noop.NoopMeter
io.micrometer.core.instrument.noop.NoopDistributionSummary
- All Implemented Interfaces:
HistogramSupport
,DistributionSummary
,Meter
-
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.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
double
max()
void
record(double amount)
Updates the statistics kept by the summary with the specified amount.Summary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.double
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
getId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.DistributionSummary
histogramCountAtValue, mean, measure, percentile
Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshot
-
Constructor Details
-
NoopDistributionSummary
-
-
Method Details
-
record
public void record(double amount)Description copied from interface:DistributionSummary
Updates the statistics kept by the summary with the specified amount.- Specified by:
record
in interfaceDistributionSummary
- Parameters:
amount
- Amount for an event being measured. For example, if the size in bytes of responses from a server. If the amount is less than 0 the value will be dropped.
-
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.
-
takeSnapshot
Description copied from interface:HistogramSupport
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.- Specified by:
takeSnapshot
in interfaceHistogramSupport
- Returns:
- A snapshot of all distribution statistics at a point in time.
-