Package io.opentelemetry.api.metrics
Interface DoubleUpDownCounterBuilder
-
- All Superinterfaces:
InstrumentBuilder,SynchronousInstrumentBuilder
public interface DoubleUpDownCounterBuilder extends SynchronousInstrumentBuilder
Builder class forDoubleUpDownCounter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUpDownCounterbuild()Builds and returns aInstrumentwith the desired options.DoubleUpDownCounterBuildersetDescription(String description)Sets the description of theInstrument.DoubleUpDownCounterBuildersetUnit(String unit)Sets the unit of theInstrument.
-
-
-
Method Detail
-
setDescription
DoubleUpDownCounterBuilder setDescription(String description)
Description copied from interface:InstrumentBuilderSets the description of theInstrument.Default value is
"".- Specified by:
setDescriptionin interfaceInstrumentBuilder- Parameters:
description- the description of the Instrument.- Returns:
- this.
-
setUnit
DoubleUpDownCounterBuilder setUnit(String unit)
Description copied from interface:InstrumentBuilderSets the unit of theInstrument.Default value is
"1".- Specified by:
setUnitin interfaceInstrumentBuilder- Parameters:
unit- the unit of the Instrument.- Returns:
- this.
-
build
DoubleUpDownCounter build()
Description copied from interface:InstrumentBuilderBuilds and returns aInstrumentwith the desired options.- Specified by:
buildin interfaceInstrumentBuilder- Specified by:
buildin interfaceSynchronousInstrumentBuilder- Returns:
- a
Instrumentwith the desired options.
-
-