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