public interface ComponentMetricsSettings
Settings which control metrics behavior for a metrics-capable component.
Do not use this for controlling overall metrics. Use MetricsSettings
instead.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builder forComponentMetricsSettings
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a builder forComponentMetricsSettings
.Returns a builder forComponentMetricsSettings
based on the provided component metric settings config node.static ComponentMetricsSettings
Returns component metrics settings created from aConfig
node, by convention themetrics
config section within the component's own config section.boolean
-
Method Details
-
create
Returns component metrics settings created from aConfig
node, by convention themetrics
config 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
Returns a builder forComponentMetricsSettings
based 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 metrics are enabled for the component according to the settings
-