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