Class ViewRegistrationConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.ViewRegistrationConfig.BuilderBase<ViewRegistrationConfig.Builder, ViewRegistrationConfig>
io.helidon.telemetry.otelconfig.ViewRegistrationConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>, Builder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>, ConfigBuilderSupport.ConfiguredBuilder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>, Supplier<ViewRegistrationConfig>
- Enclosing interface:
ViewRegistrationConfig
public static class ViewRegistrationConfig.Builder
extends ViewRegistrationConfig.BuilderBase<ViewRegistrationConfig.Builder, ViewRegistrationConfig>
implements Builder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>
Fluent API builder for
ViewRegistrationConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class ViewRegistrationConfig.BuilderBase
ViewRegistrationConfig.BuilderBase.ViewRegistrationConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ViewRegistrationConfig.BuilderBase
aggregation, aggregation, attributeFilter, attributeFilter, cardinalityLimit, cardinalityLimit, clearAttributeFilter, clearCardinalityLimit, clearDescription, clearName, config, config, description, description, from, from, instrumentSelector, instrumentSelector, instrumentSelector, instrumentSelector, name, name, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionOptional<io.opentelemetry.sdk.metrics.Aggregation> Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.aggregation(io.opentelemetry.sdk.metrics.Aggregation aggregation) Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.Attribute name filter, configurable as a string compiled as a regular expression usingPattern.attributeFilter(Predicate<String> attributeFilter) Attribute name filter, configurable as a string compiled as a regular expression usingPattern.Cardinality limit.cardinalityLimit(int cardinalityLimit) Cardinality limit.Clear existing value of attributeFilter.Clear existing value of cardinalityLimit.Clear existing value of description.Clear existing value of name.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Metric view description.description(String description) Metric view description.from(ViewRegistrationConfig prototype) Update this builder from an existing prototype instance.from(ViewRegistrationConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Optional<io.opentelemetry.sdk.metrics.InstrumentSelector> Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(io.opentelemetry.sdk.metrics.InstrumentSelector instrumentSelector) Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(Consumer<io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder> consumer) Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(Supplier<? extends io.opentelemetry.sdk.metrics.InstrumentSelector> supplier) Instrument selector, configurable usingInstrumentSelectorConfig.name()Metrics view name.Metrics view name.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ViewRegistrationConfigget()default ViewRegistrationConfig.Builderidentity()Instance of this builder as the correct type.default ViewRegistrationConfig.Builderupdate(Consumer<ViewRegistrationConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ViewRegistrationConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ViewRegistrationConfig.Builder, ViewRegistrationConfig>- Returns:
- instance of the built type
-