public interface ComponentMetricsSettings
Settings which control metrics behavior for a metrics-capable component.
Do not use this for controlling overall metrics. Use MetricsConfig instead.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forComponentMetricsSettings. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a builder forComponentMetricsSettings.Deprecated, for removal: This API element is subject to removal in a future version.Returns a builder forComponentMetricsSettingsbased on the provided component metric settings config node.static ComponentMetricsSettingsDeprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadstatic ComponentMetricsSettingsReturns component metrics settings created from aConfignode, by convention themetricsconfig section within the component's own config section.booleanReturns whether the component settings indicate that metrics are enabled for the component.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadReturns component metrics settings created from configuration.- Parameters:
config- configuration- Returns:
- new settings reflecting the config, using defaults as needed
-
create
Returns component metrics settings created from aConfignode, by convention themetricsconfig section within the component's own config section.Equivalent to
ComponentMetricsSettings.builder().config(config).build().- Parameters:
config- the metrics config section within the component's configuration- Returns:
- new settings reflecting the config, using defaults as needed
-
builder
Returns a builder forComponentMetricsSettings.- Returns:
- new builder
-
builder
@Deprecated(since="4.4.0", forRemoval=true) static ComponentMetricsSettings.Builder builder(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usebuilder(io.helidon.config.Config)insteadReturns a configured builder.- Parameters:
config- configuration- Returns:
- new builder initialized with the config settings
-
builder
Returns a builder forComponentMetricsSettingsbased on the provided component metric settings config node.- Parameters:
componentMetricsConfig- the config node containing the component metrics config section- Returns:
- new builder initialized with the config settings
-
isEnabled
boolean isEnabled()Returns whether the component settings indicate that metrics are enabled for the component.- Returns:
- whether metrics are enabled for the component according to the settings
-
builder(io.helidon.config.Config)instead