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 String
CONFIG_KEY_PREFIX
static String
KEY_PERFORMANCE_INDICATORS_CONFIG_KEY
Config key for extended key performance indicator metrics settings.static String
KEY_PERFORMANCE_INDICATORS_EXTENDED_CONFIG_KEY
Config key forenabled
setting of the extended KPI metrics.static boolean
KEY_PERFORMANCE_INDICATORS_EXTENDED_DEFAULT
Default enabled setting for extended KPI metrics.static String
LONG_RUNNING_REQUESTS_CONFIG_KEY
Config key for long-running requests settings.static String
LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
Config key for long-running requests threshold setting (in milliseconds).static long
LONG_RUNNING_REQUESTS_THRESHOLD_MS_DEFAULT
Default long-running requests threshold.static String
QUALIFIED_LONG_RUNNING_REQUESTS_THRESHOLD_CONFIG_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPerformanceIndicatorMetricsSettings
build()
Builds aKeyPerformanceIndicatorMetricsSettings
using the settings from the builder.KeyPerformanceIndicatorMetricsSettings.Builder
config(Config kpiConfig)
Updates the KPI metrics settings in the builder based on the providedConfig
object.KeyPerformanceIndicatorMetricsSettings.Builder
extended(boolean value)
Sets whether exntended KPI metrics should be enabled in the settings.boolean
isExtended()
long
longRunningRequestThresholdMs()
KeyPerformanceIndicatorMetricsSettings.Builder
longRunningRequestThresholdMs(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 forenabled
setting 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 providedConfig
object.- Parameters:
kpiConfig
- KPI metrics config node- Returns:
- updated builder instance
-
build
KeyPerformanceIndicatorMetricsSettings build()
Builds aKeyPerformanceIndicatorMetricsSettings
using the settings from the builder.- Specified by:
build
in interfaceBuilder<KeyPerformanceIndicatorMetricsSettings>
- Returns:
KeyPerformanceIndicatorMetricsSettings
prepared according to the builder
-
isExtended
boolean isExtended()
-
longRunningRequestThresholdMs
long longRunningRequestThresholdMs()
-
-