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
public class NoopDistributionSummary extends NoopMeter implements 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.Type
-
-
Constructor Summary
Constructors Constructor Description NoopDistributionSummary(Meter.Id id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()doublemax()voidrecord(double amount)Updates the statistics kept by the summary with the specified amount.HistogramSnapshottakeSnapshot()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.doubletotalAmount()-
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 Detail
-
NoopDistributionSummary
public NoopDistributionSummary(Meter.Id id)
-
-
Method Detail
-
record
public void record(double amount)
Description copied from interface:DistributionSummaryUpdates the statistics kept by the summary with the specified amount.- Specified by:
recordin 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:
countin interfaceDistributionSummary- Returns:
- The number of times that record has been called since this timer was created.
-
totalAmount
public double totalAmount()
- Specified by:
totalAmountin interfaceDistributionSummary- Returns:
- The total amount of all recorded events.
-
max
public double max()
- Specified by:
maxin interfaceDistributionSummary- Returns:
- The maximum time of a single event.
-
takeSnapshot
public HistogramSnapshot takeSnapshot()
Description copied from interface:HistogramSupportSummary 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:
takeSnapshotin interfaceHistogramSupport- Returns:
- A snapshot of all distribution statistics at a point in time.
-
-