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.BuilderNested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcount()doublemax()voidrecord(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.doubleMethods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.core.instrument.DistributionSummary
histogramCountAtValue, mean, measure, percentileMethods 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: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
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.
-