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