Module io.helidon.metrics.api
Package io.helidon.metrics.api
Interface KeyPerformanceIndicatorMetricsSettings.Builder
-
- All Superinterfaces:
Builder<KeyPerformanceIndicatorMetricsSettings>,Supplier<KeyPerformanceIndicatorMetricsSettings>
- All Known Subinterfaces:
KeyPerformanceIndicatorMetricsSettings.Builder
- Enclosing interface:
- KeyPerformanceIndicatorMetricsSettings
public static interface KeyPerformanceIndicatorMetricsSettings.Builder extends Builder<KeyPerformanceIndicatorMetricsSettings>
Override default settings.Configuration options:
Key performance indicator metrics configuration ("metrics.key-performance-indicators" 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
Fields Modifier and Type Field Description static StringCONFIG_KEY_PREFIXstatic StringKEY_PERFORMANCE_INDICATORS_CONFIG_KEYConfig key for extended key performance indicator metrics settings.static StringKEY_PERFORMANCE_INDICATORS_EXTENDED_CONFIG_KEYConfig key forenabledsetting of the extended KPI metrics.static booleanKEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULTDefault enabled setting for extended KPI metrics.static StringLONG_RUNNING_REQUESTS_CONFIG_KEYConfig key for long-running requests settings.static StringLONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEYConfig key for long-running requests threshold setting (in milliseconds).static longLONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULTDefault long-running requests threshold.static StringQUALIFIED_LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPerformanceIndicatorMetricsSettingsbuild()Builds aKeyPerformanceIndicatorMetricsSettingsusing the settings from the builder.KeyPerformanceIndicatorMetricsSettings.Builderconfig(Config kpiConfig)Updates the KPI metrics settings in the builder based on the providedConfigobject.KeyPerformanceIndicatorMetricsSettings.Builderextended(boolean value)Sets whether exntended KPI metrics should be enabled in the settings.booleanisExtended()longlongRunningRequestThresholdMs()KeyPerformanceIndicatorMetricsSettings.BuilderlongRunningRequestThresholdMs(long value)Sets the long-running request threshold (in ms).
-
-
-
Field Detail
-
KEY_PERFORMANCE_INDICATORS_CONFIG_KEY
static final String KEY_PERFORMANCE_INDICATORS_CONFIG_KEY
Config key for extended key performance indicator metrics settings.- See Also:
- Constant Field Values
-
KEY_PERFORMANCE_INDICATORS_EXTENDED_CONFIG_KEY
static final String KEY_PERFORMANCE_INDICATORS_EXTENDED_CONFIG_KEY
Config key forenabledsetting of the extended KPI metrics.- See Also:
- Constant Field Values
-
KEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULT
static final boolean KEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULT
Default enabled setting for extended KPI metrics.- See Also:
- Constant Field Values
-
LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
static final String LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
Config key for long-running requests threshold setting (in milliseconds).- See Also:
- Constant Field Values
-
LONG_RUNNING_REQUESTS_CONFIG_KEY
static final String LONG_RUNNING_REQUESTS_CONFIG_KEY
Config key for long-running requests settings.- See Also:
- Constant Field Values
-
LONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULT
static final long LONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULT
Default long-running requests threshold.- See Also:
- Constant Field Values
-
CONFIG_KEY_PREFIX
static final String CONFIG_KEY_PREFIX
- See Also:
- Constant Field Values
-
QUALIFIED_LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
static final String QUALIFIED_LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
extended
KeyPerformanceIndicatorMetricsSettings.Builder extended(boolean value)
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
KeyPerformanceIndicatorMetricsSettings.Builder longRunningRequestThresholdMs(long value)
Sets the long-running request threshold (in ms).- Parameters:
value- long-running request threshold- Returns:
- updated builder instance
-
config
KeyPerformanceIndicatorMetricsSettings.Builder config(Config kpiConfig)
Updates the KPI metrics settings in the builder based on the providedConfigobject.- Parameters:
kpiConfig- KPI metrics config node- Returns:
- updated builder instance
-
build
KeyPerformanceIndicatorMetricsSettings build()
Builds aKeyPerformanceIndicatorMetricsSettingsusing the settings from the builder.- Specified by:
buildin interfaceBuilder<KeyPerformanceIndicatorMetricsSettings>- Returns:
KeyPerformanceIndicatorMetricsSettingsprepared according to the builder
-
isExtended
boolean isExtended()
-
longRunningRequestThresholdMs
long longRunningRequestThresholdMs()
-
-