Package io.opentelemetry.api.metrics
Interface DoubleUpDownSumObserver.Builder
-
- All Superinterfaces:
AsynchronousInstrument.Builder
,Instrument.Builder
- Enclosing interface:
- DoubleUpDownSumObserver
public static interface DoubleUpDownSumObserver.Builder extends AsynchronousInstrument.Builder
Builder class forDoubleUpDownSumObserver
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUpDownSumObserver
build()
Builds and returns aInstrument
with the desired options.DoubleUpDownSumObserver.Builder
setDescription(String description)
Sets the description of theInstrument
.DoubleUpDownSumObserver.Builder
setUnit(String unit)
Sets the unit of theInstrument
.
-
-
-
Method Detail
-
setDescription
DoubleUpDownSumObserver.Builder setDescription(String description)
Description copied from interface:Instrument.Builder
Sets the description of theInstrument
.Default value is
""
.- Specified by:
setDescription
in interfaceInstrument.Builder
- Parameters:
description
- the description of the Instrument.- Returns:
- this.
-
setUnit
DoubleUpDownSumObserver.Builder setUnit(String unit)
Description copied from interface:Instrument.Builder
Sets the unit of theInstrument
.Default value is
"1"
.- Specified by:
setUnit
in interfaceInstrument.Builder
- Parameters:
unit
- the unit of the Instrument.- Returns:
- this.
-
build
DoubleUpDownSumObserver build()
Description copied from interface:Instrument.Builder
Builds and returns aInstrument
with the desired options.- Specified by:
build
in interfaceAsynchronousInstrument.Builder
- Specified by:
build
in interfaceInstrument.Builder
- Returns:
- a
Instrument
with the desired options.
-
-