Class OtlpPublisherConfig.Builder
java.lang.Object
io.helidon.metrics.providers.micrometer.OtlpPublisherConfig.BuilderBase<OtlpPublisherConfig.Builder, OtlpPublisherConfig>
io.helidon.metrics.providers.micrometer.OtlpPublisherConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<OtlpPublisherConfig.Builder, OtlpPublisherConfig>, Builder<OtlpPublisherConfig.Builder, OtlpPublisher>, ConfigBuilderSupport.ConfiguredBuilder<OtlpPublisherConfig.Builder, OtlpPublisherConfig>, Supplier<OtlpPublisher>
- Enclosing interface:
OtlpPublisherConfig
public static class OtlpPublisherConfig.Builder
extends OtlpPublisherConfig.BuilderBase<OtlpPublisherConfig.Builder, OtlpPublisherConfig>
implements Builder<OtlpPublisherConfig.Builder, OtlpPublisher>
Fluent API builder for
OtlpPublisher.-
Nested Class Summary
Nested classes/interfaces inherited from class OtlpPublisherConfig.BuilderBase
OtlpPublisherConfig.BuilderBase.OtlpPublisherConfigImplModifier 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 OtlpPublisherConfig.BuilderBase
addHeaders, addMaxBucketsPerMeter, addProperties, addResourceAttributes, aggregationTemporality, aggregationTemporality, baseTimeUnit, baseTimeUnit, batchSize, batchSize, clearAggregationTemporality, clearBaseTimeUnit, clearBatchSize, clearInterval, clearMaxBucketCount, clearMaxScale, clearName, clearPrefix, clearUrl, config, config, enabled, enabled, from, from, headers, headers, interval, interval, maxBucketCount, maxBucketCount, maxBucketsPerMeter, maxBucketsPerMeter, maxScale, maxScale, name, name, preBuildPrototype, prefix, prefix, properties, properties, resourceAttributes, resourceAttributes, toString, url, url, validatePrototypeModifier and TypeMethodDescriptionaddHeaders(Map<String, String> headers) Headers to add to each transmission message.addMaxBucketsPerMeter(Map<String, Integer> maxBucketsPerMeter) Maximum number of buckets to use for specific meters.addProperties(Map<String, String> properties) Property values to be returned by the OTLP meter registry configuration.addResourceAttributes(Map<String, String> resourceAttributes) Attribute name/value pairs to be associated with all metrics transmissions.Optional<io.micrometer.registry.otlp.AggregationTemporality> Algorithm to use for adjusting values before transmission.aggregationTemporality(io.micrometer.registry.otlp.AggregationTemporality aggregationTemporality) Algorithm to use for adjusting values before transmission.Base time unit for timers.baseTimeUnit(TimeUnit baseTimeUnit) Base time unit for timers.Number of measurements to send in a single request to the backend.batchSize(int batchSize) Number of measurements to send in a single request to the backend.Clear existing value of aggregationTemporality.Clear existing value of baseTimeUnit.Clear existing value of batchSize.Clear existing value of interval.Clear existing value of maxBucketCount.Clear existing value of maxScale.Clear existing value of name.Clear existing value of prefix.clearUrl()Clear existing value of url.config()Metrics configuration node.Update builder from configuration (node of this type).booleanenabled()Whether the configured publisher is enabled.enabled(boolean enabled) Whether the configured publisher is enabled.from(OtlpPublisherConfig prototype) Update this builder from an existing prototype instance.from(OtlpPublisherConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()Headers to add to each transmission message.Headers to add to each transmission message.interval()Interval between successive transmissions of metrics data.Interval between successive transmissions of metrics data.Maximum bucket count to apply to statistical histogram.maxBucketCount(int maxBucketCount) Maximum bucket count to apply to statistical histogram.Maximum number of buckets to use for specific meters.maxBucketsPerMeter(Map<String, Integer> maxBucketsPerMeter) Maximum number of buckets to use for specific meters.maxScale()Maximum scale value to apply to statistical histogram.maxScale(int maxScale) Maximum scale value to apply to statistical histogram.name()Name option.Name option.protected voidHandles providers and decorators.prefix()The prefix for settings.The prefix for settings.Property values to be returned by the OTLP meter registry configuration.properties(Map<String, String> properties) Property values to be returned by the OTLP meter registry configuration.Attribute name/value pairs to be associated with all metrics transmissions.resourceAttributes(Map<String, String> resourceAttributes) Attribute name/value pairs to be associated with all metrics transmissions.toString()url()URL to which to send metrics telemetry.URL to which to send metrics telemetry.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 OtlpPublisherget()default OtlpPublisherConfig.Builderidentity()Instance of this builder as the correct type.default OtlpPublisherConfig.Builderupdate(Consumer<OtlpPublisherConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OtlpPublisherConfig.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<OtlpPublisherConfig.Builder, OtlpPublisherConfig>- 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<OtlpPublisherConfig.Builder, OtlpPublisher>- Returns:
- instance of the built type
-