Package io.micrometer.dynatrace.types
Class DynatraceTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractTimer
io.micrometer.dynatrace.types.DynatraceTimer
- All Implemented Interfaces:
io.micrometer.core.instrument.distribution.HistogramSupport,io.micrometer.core.instrument.Meter,io.micrometer.core.instrument.Timer,DynatraceSummarySnapshotSupport
public final class DynatraceTimer
extends io.micrometer.core.instrument.AbstractTimer
implements DynatraceSummarySnapshotSupport
Resettable
Timer implementation for Dynatrace exporters.- Since:
- 1.9.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
io.micrometer.core.instrument.Meter.Builder, io.micrometer.core.instrument.Meter.Id, io.micrometer.core.instrument.Meter.TypeNested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer
io.micrometer.core.instrument.Timer.Builder, io.micrometer.core.instrument.Timer.ResourceSample, io.micrometer.core.instrument.Timer.Sample -
Field Summary
Fields inherited from class io.micrometer.core.instrument.AbstractTimer
clock, histogram -
Constructor Summary
ConstructorsConstructorDescriptionDynatraceTimer(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Clock clock, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector, TimeUnit baseTimeUnit) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Using this method is not synchronized and might give inconsistent results when multiple getters are called sequentially.booleanDeprecated.doubleUsing this method is not synchronized and might give inconsistent results when multiple getters are called sequentially.doubleDeprecated.since 1.9.10.protected voidrecordNonNegative(long amount, TimeUnit unit) io.micrometer.core.instrument.distribution.HistogramSnapshottakeSummarySnapshot(TimeUnit unit) doubleUsing this method is not synchronized and might give inconsistent results when multiple getters are called sequentially.Methods inherited from class io.micrometer.core.instrument.AbstractTimer
baseTimeUnit, close, record, record, record, recordCallableMethods 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.distribution.HistogramSupport
takeSnapshotMethods inherited from interface io.micrometer.core.instrument.Meter
getId, match, useMethods inherited from interface io.micrometer.core.instrument.Timer
histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
-
Constructor Details
-
DynatraceTimer
public DynatraceTimer(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Clock clock, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionStatisticConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector, TimeUnit baseTimeUnit)
-
-
Method Details
-
hasValues
Deprecated.- Specified by:
hasValuesin interfaceDynatraceSummarySnapshotSupport
-
takeSummarySnapshot
- Specified by:
takeSummarySnapshotin interfaceDynatraceSummarySnapshotSupport
-
takeSummarySnapshot
- Specified by:
takeSummarySnapshotin interfaceDynatraceSummarySnapshotSupport
-
takeSummarySnapshotAndReset
- Specified by:
takeSummarySnapshotAndResetin interfaceDynatraceSummarySnapshotSupport
-
takeSummarySnapshotAndReset
- Specified by:
takeSummarySnapshotAndResetin interfaceDynatraceSummarySnapshotSupport
-
recordNonNegative
- Specified by:
recordNonNegativein classio.micrometer.core.instrument.AbstractTimer
-
count
public long count()Using this method is not synchronized and might give inconsistent results when multiple getters are called sequentially. It is recommended totake a snapshotand use the getters on theDynatraceSummarySnapshotinstead.- Specified by:
countin interfaceio.micrometer.core.instrument.Timer
-
totalTime
Using this method is not synchronized and might give inconsistent results when multiple getters are called sequentially. It is recommended totake a snapshotand use the getters on theDynatraceSummarySnapshotinstead.- Specified by:
totalTimein interfaceio.micrometer.core.instrument.Timer
-
max
Using this method is not synchronized and might give inconsistent results when multiple getters are called sequentially. It is recommended totake a snapshotand use the getters on theDynatraceSummarySnapshotinstead.- Specified by:
maxin interfaceio.micrometer.core.instrument.Timer
-
min
Deprecated.since 1.9.10. Using this method is not synchronized and might give inconsistent results when multiple getters are called sequentially. It is recommended totake a snapshotand use the getters on theDynatraceSummarySnapshotinstead. -
takeSnapshot
public io.micrometer.core.instrument.distribution.HistogramSnapshot takeSnapshot()- Specified by:
takeSnapshotin interfaceio.micrometer.core.instrument.distribution.HistogramSupport- Overrides:
takeSnapshotin classio.micrometer.core.instrument.AbstractTimer
-
DynatraceSummarySnapshotSupport.hasValues().