Package io.opentelemetry.api.metrics
Interface DoubleUpDownCounter.Builder
-
- All Superinterfaces:
Instrument.Builder,SynchronousInstrument.Builder
- Enclosing interface:
- DoubleUpDownCounter
public static interface DoubleUpDownCounter.Builder extends SynchronousInstrument.Builder
Builder class forDoubleUpDownCounter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUpDownCounterbuild()Builds and returns aInstrumentwith the desired options.DoubleUpDownCounter.BuildersetDescription(java.lang.String description)Sets the description of theInstrument.DoubleUpDownCounter.BuildersetUnit(java.lang.String unit)Sets the unit of theInstrument.
-
-
-
Method Detail
-
setDescription
DoubleUpDownCounter.Builder setDescription(java.lang.String description)
Description copied from interface:Instrument.BuilderSets the description of theInstrument.Default value is
"".- Specified by:
setDescriptionin interfaceInstrument.Builder- Parameters:
description- the description of the Instrument.- Returns:
- this.
-
setUnit
DoubleUpDownCounter.Builder setUnit(java.lang.String unit)
Description copied from interface:Instrument.BuilderSets the unit of theInstrument.Default value is
"1".- Specified by:
setUnitin interfaceInstrument.Builder- Parameters:
unit- the unit of the Instrument.- Returns:
- this.
-
build
DoubleUpDownCounter build()
Description copied from interface:Instrument.BuilderBuilds and returns aInstrumentwith the desired options.- Specified by:
buildin interfaceInstrument.Builder- Specified by:
buildin interfaceSynchronousInstrument.Builder- Returns:
- a
Instrumentwith the desired options.
-
-