Class PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrometheusPublisherConfig>
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
PrometheusPublisherConfig.Builder
- Enclosing interface:
PrometheusPublisherConfig
public abstract static class PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrometheusPublisherConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
PrometheusPublisherConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of descriptions.Clear existing value of interval.Clear existing value of name.Clear existing value of prefix.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).Whether to include meter descriptions in Prometheus output.descriptions(boolean descriptions) Whether to include meter descriptions in Prometheus output.booleanenabled()Whether the configured publisher is enabled.enabled(boolean enabled) Whether the configured publisher is enabled.from(PrometheusPublisherConfig prototype) Update this builder from an existing prototype instance.from(PrometheusPublisherConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.interval()Step size used in computing "windowed" statistics.Step size used in computing "windowed" statistics.name()Name option.Name option.protected voidHandles providers and decorators.prefix()Property name prefix.Property name prefix.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
Whether the configured publisher is enabled.- Parameters:
enabled- true if enabled, false otherwise- Returns:
- updated builder instance
- See Also:
-
clearPrefix
Clear existing value of prefix.- Returns:
- updated builder instance
- See Also:
-
prefix
Property name prefix.- Parameters:
prefix- property name prefix- Returns:
- updated builder instance
- See Also:
-
clearDescriptions
Clear existing value of descriptions.- Returns:
- updated builder instance
- See Also:
-
descriptions
Whether to include meter descriptions in Prometheus output.- Parameters:
descriptions- true to include descriptions, false otherwise- Returns:
- updated builder instance
- See Also:
-
clearInterval
Clear existing value of interval.- Returns:
- updated builder instance
- See Also:
-
interval
Step size used in computing "windowed" statistics. Micrometer advises that this value should be close to the interval with which backend systems scrape the Prometheus-format metrics data.- Parameters:
interval- step time- Returns:
- updated builder instance
- See Also:
-
clearName
Clear existing value of name.- Returns:
- updated builder instance
- See Also:
-
name
Name option. Defined inMetricsPublisherConfig.name()- Parameters:
name- the name option- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()Whether the configured publisher is enabled.- Returns:
- true if enabled, false otherwise
-
prefix
Property name prefix.- Returns:
- property name prefix
-
descriptions
Whether to include meter descriptions in Prometheus output.- Returns:
- true to include descriptions, false otherwise
-
interval
Step size used in computing "windowed" statistics. Micrometer advises that this value should be close to the interval with which backend systems scrape the Prometheus-format metrics data.- Returns:
- step time
-
name
Name option. Defined inMetricsPublisherConfig.name()- Returns:
- the name option
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)