Module io.helidon.metrics.api
Package io.helidon.metrics.api
Interface ComponentMetricsSettings.Builder
- All Superinterfaces:
Builder<ComponentMetricsSettings.Builder,
,ComponentMetricsSettings> Supplier<ComponentMetricsSettings>
- Enclosing interface:
ComponentMetricsSettings
public static interface ComponentMetricsSettings.Builder
extends Builder<ComponentMetricsSettings.Builder,ComponentMetricsSettings>
Builder for
ComponentMetricsSettings
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Config key within the component'smetrics
config section controlling whether metrics are enabled for that component.static final String
By convention, the config key within the component's config section containing metrics settings for the component. -
Method Summary
-
Field Details
-
METRICS_CONFIG_KEY
By convention, the config key within the component's config section containing metrics settings for the component.- See Also:
-
ENABLED_CONFIG_KEY
Config key within the component'smetrics
config section controlling whether metrics are enabled for that component.- See Also:
-
-
Method Details
-
build
ComponentMetricsSettings build()Constructs aComponentMetricsSettings
object from the builder.- Specified by:
build
in interfaceBuilder<ComponentMetricsSettings.Builder,
ComponentMetricsSettings> - Returns:
- new settings instance based on the builder
-
enabled
Sets whether metrics should be enabled for the component.- Parameters:
value
- true if metrics should be enabled for the component; false if not- Returns:
- updated builder
-
config
Updates the builder using the provided metrics config.- Parameters:
config
- the component'smetrics
config section- Returns:
- updated builder
-