Class PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<PrometheusPublisher>,MetricsPublisherConfig,PrometheusPublisherConfig,Supplier<PrometheusPublisher>
- Enclosing class:
PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig>
protected static class PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl
extends Object
implements PrometheusPublisherConfig, Supplier<PrometheusPublisher>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.metrics.providers.micrometer.PrometheusPublisherConfig
PrometheusPublisherConfig.Builder, PrometheusPublisherConfig.BuilderBase<BUILDER extends PrometheusPublisherConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends PrometheusPublisherConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.Whether to include meter descriptions in Prometheus output.booleanenabled()Whether the configured publisher is enabled.booleanget()inthashCode()interval()Step size used in computing "windowed" statistics.name()Name for this instance of the publisher.prefix()Property name prefix.toString()
-
Constructor Details
-
PrometheusPublisherConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<PrometheusPublisher>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<PrometheusPublisher>
-
enabled
public boolean enabled()Description copied from interface:PrometheusPublisherConfigWhether the configured publisher is enabled.- Specified by:
enabledin interfacePrometheusPublisherConfig- Returns:
- true if enabled, false otherwise
-
prefix
Description copied from interface:PrometheusPublisherConfigProperty name prefix.- Specified by:
prefixin interfacePrometheusPublisherConfig- Returns:
- property name prefix
-
descriptions
Description copied from interface:PrometheusPublisherConfigWhether to include meter descriptions in Prometheus output.- Specified by:
descriptionsin interfacePrometheusPublisherConfig- Returns:
- true to include descriptions, false otherwise
-
interval
Description copied from interface:PrometheusPublisherConfigStep 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.- Specified by:
intervalin interfacePrometheusPublisherConfig- Returns:
- step time
-
name
Description copied from interface:MetricsPublisherConfigName for this instance of the publisher.- Specified by:
namein interfaceMetricsPublisherConfig- Returns:
- name of the publisher instance
-
toString
-
equals
-
hashCode
public int hashCode()
-