public static interface LongMeasure.Builder extends Measure.Builder
LongMeasure.| Modifier and Type | Method and Description |
|---|---|
LongMeasure |
build()
Builds and returns a
Instrument with the desired options. |
LongMeasure.Builder |
setAbsolute(boolean absolute)
Sets the absolute property for this
Builder. |
LongMeasure.Builder |
setConstantLabels(Map<String,String> constantLabels)
Sets the map of constant labels (they will be added to all the Bound Instruments) for the
Instrument.
|
LongMeasure.Builder |
setDescription(String description)
Sets the description of the
Instrument. |
LongMeasure.Builder |
setLabelKeys(List<String> labelKeys)
Sets the list of label keys for the Instrument.
|
LongMeasure.Builder |
setUnit(String unit)
Sets the unit of the
Instrument. |
LongMeasure.Builder setDescription(String description)
Instrument.BuilderInstrument.
Default value is "".
setDescription in interface Instrument.BuildersetDescription in interface Measure.Builderdescription - the description of the Instrument.LongMeasure.Builder setUnit(String unit)
Instrument.BuilderInstrument.
Default value is "1".
setUnit in interface Instrument.BuildersetUnit in interface Measure.Builderunit - the unit of the Instrument.LongMeasure.Builder setLabelKeys(List<String> labelKeys)
Instrument.BuilderDefault value is Collections.emptyList()
setLabelKeys in interface Instrument.BuildersetLabelKeys in interface Measure.BuilderlabelKeys - the list of label keys for the Instrument.LongMeasure.Builder setConstantLabels(Map<String,String> constantLabels)
Instrument.BuilderDefault value is Collections.emptyMap().
setConstantLabels in interface Instrument.BuildersetConstantLabels in interface Measure.BuilderconstantLabels - the map of constant labels for the Instrument.LongMeasure.Builder setAbsolute(boolean absolute)
Measure.BuilderBuilder. If true only positive values are
expected.
Default value is true
setAbsolute in interface Measure.Builderabsolute - true only positive values are expected.LongMeasure build()
Instrument.BuilderInstrument with the desired options.build in interface Instrument.Builderbuild in interface Measure.BuilderInstrument with the desired options.