Module io.helidon.metrics.api
Package io.helidon.metrics.api
Interface KeyPerformanceIndicatorMetricsSettings
- All Known Subinterfaces:
KeyPerformanceIndicatorMetricsSettings
public interface KeyPerformanceIndicatorMetricsSettings
Settings for key performance indicator (KPI) metrics.
The Helidon SE and MP metrics guides describe the KPI metrics and how to control them using config and this settings interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOverride default settings. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder for the settings.builder(KeyPerformanceIndicatorMetricsSettings kpiMetricsSettings) Creates a builder using the values from an existingKeyPerformanceIndicatorMetricsSettingsinstance.Creates a newKeyPerformanceIndicatorMetricsSettingsinstance from the specified config node containing KPI metrics settings.booleanlong
-
Method Details
-
create
Creates a newKeyPerformanceIndicatorMetricsSettingsinstance from the specified config node containing KPI metrics settings.- Parameters:
kpiConfig- config node containing KPI metrics settings- Returns:
- new KPI metrics settings reflecting the config
-
builder
Creates a new builder for the settings.- Returns:
- new
KeyPerformanceIndicatorMetricsSettings.Builder
-
builder
static KeyPerformanceIndicatorMetricsSettings.Builder builder(KeyPerformanceIndicatorMetricsSettings kpiMetricsSettings) Creates a builder using the values from an existingKeyPerformanceIndicatorMetricsSettingsinstance.- Parameters:
kpiMetricsSettings- existing KPI metrics settings to copy- Returns:
- new
Builderinitialized according to the provide settings
-
isExtended
boolean isExtended()- Returns:
- whether extended KPI metrics are enabled in the settings
-
longRunningRequestThresholdMs
long longRunningRequestThresholdMs()- Returns:
- the threshold (in ms) for long-running requests
-