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
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix of configuration keys.static final StringConfig key for extended key performance indicator metrics settings.static final StringConfig key forenabledsetting of the extended KPI metrics.static final booleanDefault enabled setting for extended KPI metrics.static final StringConfig key for long-running requests settings.static final StringConfig key for long-running requests threshold setting (in milliseconds).static final longDefault long-running requests threshold.static final StringConfiguration key for long-running requests extended configuration. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aKeyPerformanceIndicatorMetricsSettingsusing the settings from the builder.Updates the KPI metrics settings in the builder based on the providedConfigobject.extended(boolean value) Sets whether exntended KPI metrics should be enabled in the settings.booleanWhether extended KPIs are enabled.longThreshold (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 forenabledsetting 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 providedConfigobject.- Parameters:
kpiConfig- KPI metrics config node- Returns:
- updated builder instance
-
build
Builds aKeyPerformanceIndicatorMetricsSettingsusing the settings from the builder.- Specified by:
buildin interfaceBuilder<KeyPerformanceIndicatorMetricsSettings.Builder,KeyPerformanceIndicatorMetricsSettings> - Returns:
KeyPerformanceIndicatorMetricsSettingsprepared according to the builder
-
isExtended
boolean isExtended()Whether extended KPIs are enabled.- Returns:
trueif extended
-
longRunningRequestThresholdMs
long longRunningRequestThresholdMs()Threshold (in milliseconds) for long-running requests.- Returns:
- threshold in milliseconds
-