Module io.helidon.metrics.api
Package io.helidon.metrics.api
Interface KeyPerformanceIndicatorMetricsSettings.Builder
- All Superinterfaces:
Builder<KeyPerformanceIndicatorMetricsSettings.Builder,
,KeyPerformanceIndicatorMetricsSettings> Supplier<KeyPerformanceIndicatorMetricsSettings>
- All Known Subinterfaces:
KeyPerformanceIndicatorMetricsSettings.Builder
- Enclosing interface:
- KeyPerformanceIndicatorMetricsSettings
public static interface KeyPerformanceIndicatorMetricsSettings.Builder
extends Builder<KeyPerformanceIndicatorMetricsSettings.Builder,KeyPerformanceIndicatorMetricsSettings>
Override default settings.
Configuration options:
Key | Default | Description | Builder method |
---|---|---|---|
"extended" | false | Whether the extended key performance indicator metrics should be enabled | extended(boolean) |
"threshold-ms" | 10000L | Threshold (in milliseconds) for long-running requests | longRunningRequestThresholdMs(long) |
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Prefix of configuration keys.static final String
Config key for extended key performance indicator metrics settings.static final String
Config key forenabled
setting of the extended KPI metrics.static final boolean
Default enabled setting for extended KPI metrics.static final String
Config key for long-running requests settings.static final String
Config key for long-running requests threshold setting (in milliseconds).static final long
Default long-running requests threshold.static final String
Configuration key for long-running requests extended configuration. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aKeyPerformanceIndicatorMetricsSettings
using the settings from the builder.Updates the KPI metrics settings in the builder based on the providedConfig
object.extended
(boolean value) Sets whether exntended KPI metrics should be enabled in the settings.boolean
Whether extended KPIs are enabled.long
Threshold (in milliseconds) for long-running requests.longRunningRequestThresholdMs
(long value) Sets the long-running request threshold (in ms).
-
Field Details
-
KEY_PERFORMANCE_INDICATORS_CONFIG_KEY
Config key for extended key performance indicator metrics settings.- See Also:
-
KEY_PERFORMANCE_INDICATORS_EXTENDED_CONFIG_KEY
Config key forenabled
setting of the extended KPI metrics.- See Also:
-
KEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULT
static final boolean KEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULTDefault enabled setting for extended KPI metrics.- See Also:
-
LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
Config key for long-running requests threshold setting (in milliseconds).- See Also:
-
LONG_RUNNING_REQUESTS_CONFIG_KEY
Config key for long-running requests settings.- See Also:
-
LONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULT
static final long LONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULTDefault long-running requests threshold.- See Also:
-
CONFIG_KEY_PREFIX
Prefix of configuration keys.- See Also:
-
QUALIFIED_LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
Configuration key for long-running requests extended configuration.- See Also:
-
-
Method Details
-
extended
Sets whether exntended KPI metrics should be enabled in the settings.- Parameters:
value
- whether extended KPI metrics should be enabled- Returns:
- updated builder instance
-
longRunningRequestThresholdMs
Sets the long-running request threshold (in ms).- Parameters:
value
- long-running request threshold- Returns:
- updated builder instance
-
config
Updates the KPI metrics settings in the builder based on the providedConfig
object.- Parameters:
kpiConfig
- KPI metrics config node- Returns:
- updated builder instance
-
build
Builds aKeyPerformanceIndicatorMetricsSettings
using the settings from the builder.- Specified by:
build
in interfaceBuilder<KeyPerformanceIndicatorMetricsSettings.Builder,
KeyPerformanceIndicatorMetricsSettings> - Returns:
KeyPerformanceIndicatorMetricsSettings
prepared according to the builder
-
isExtended
boolean isExtended()Whether extended KPIs are enabled.- Returns:
true
if extended
-
longRunningRequestThresholdMs
long longRunningRequestThresholdMs()Threshold (in milliseconds) for long-running requests.- Returns:
- threshold in milliseconds
-