Class Advice.AdviceBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.internal.descriptor.Advice.AdviceBuilder
- Direct Known Subclasses:
AutoValue_Advice.Builder
- Enclosing class:
Advice
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract Advice.AdviceBuilder
attributes
(List<AttributeKey<?>> attributes) abstract Advice
build()
(package private) abstract Advice.AdviceBuilder
explicitBucketBoundaries
(List<Double> explicitBucketBoundaries) setAttributes
(List<AttributeKey<?>> attributes) Sets the list of the attribute keys to be used for the resulting instrument.setExplicitBucketBoundaries
(List<Double> explicitBucketBoundaries) Sets the explicit bucket histogram boundaries.
-
Constructor Details
-
AdviceBuilder
AdviceBuilder()
-
-
Method Details
-
explicitBucketBoundaries
abstract Advice.AdviceBuilder explicitBucketBoundaries(@Nullable List<Double> explicitBucketBoundaries) -
setExplicitBucketBoundaries
public Advice.AdviceBuilder setExplicitBucketBoundaries(@Nullable List<Double> explicitBucketBoundaries) Sets the explicit bucket histogram boundaries.- Parameters:
explicitBucketBoundaries
- the explicit bucket histogram boundaries.
-
attributes
-
setAttributes
Sets the list of the attribute keys to be used for the resulting instrument.- Parameters:
attributes
- the list of the attribute keys.
-
build
-