public static interface LongUpDownSumObserver.Builder extends AsynchronousInstrument.Builder
LongUpDownSumObserver.| Modifier and Type | Method and Description |
|---|---|
LongUpDownSumObserver |
build()
Builds and returns a
Instrument with the desired options. |
LongUpDownSumObserver.Builder |
setConstantLabels(Labels constantLabels)
Sets the map of constant labels (they will be added to all the Bound Instruments) for the
Instrument.
|
LongUpDownSumObserver.Builder |
setDescription(String description)
Sets the description of the
Instrument. |
LongUpDownSumObserver.Builder |
setUnit(String unit)
Sets the unit of the
Instrument. |
LongUpDownSumObserver.Builder setDescription(String description)
Instrument.BuilderInstrument.
Default value is "".
setDescription in interface Instrument.Builderdescription - the description of the Instrument.LongUpDownSumObserver.Builder setUnit(String unit)
Instrument.BuilderInstrument.
Default value is "1".
setUnit in interface Instrument.Builderunit - the unit of the Instrument.LongUpDownSumObserver.Builder setConstantLabels(Labels constantLabels)
Instrument.BuilderDefault value is Collections.emptyMap().
setConstantLabels in interface Instrument.BuilderconstantLabels - the map of constant labels for the Instrument.LongUpDownSumObserver build()
Instrument.BuilderInstrument with the desired options.build in interface AsynchronousInstrument.Builderbuild in interface Instrument.BuilderInstrument with the desired options.