Module io.helidon.metrics.api
Package io.helidon.metrics.api
Class MetricsConfig.BuilderBase.MetricsConfigImpl
java.lang.Object
io.helidon.metrics.api.MetricsConfig.BuilderBase.MetricsConfigImpl
- All Implemented Interfaces:
Prototype.Api
,MetricsConfig
- Enclosing class:
MetricsConfig.BuilderBase<BUILDER extends MetricsConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MetricsConfig>
protected static class MetricsConfig.BuilderBase.MetricsConfigImpl
extends Object
implements MetricsConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.metrics.api.MetricsConfig
MetricsConfig.Builder, MetricsConfig.BuilderBase<BUILDER extends MetricsConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MetricsConfig> -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MetricsConfigImpl
(MetricsConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionappName()
config()
boolean
enabled()
boolean
int
hashCode()
boolean
isMeterEnabled
(String name, String targetScope) Reports whether the specified meter within the indicated scope is enabled, according to the metrics configuration.boolean
isScopeEnabled
(String scope) Reports whether the specified scope is enabled, according to any scope configuration that is part of this metrics configuration.lookupConfig
(String key) Looks up a single config value within the metrics configuration by config key.boolean
boolean
roles()
scoping()
tags()
toString()
-
Field Details
-
METRICS_CONFIG_KEY
The config key containing settings for all of metrics.- See Also:
-
SCOPE_CONFIG_KEY
Config key for scope-related settings.- See Also:
-
KEY_PERFORMANCE_INDICATORS_CONFIG_KEY
Config key for KPI metrics settings.- See Also:
-
-
Constructor Details
-
MetricsConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
lookupConfig
Description copied from interface:MetricsConfig
Looks up a single config value within the metrics configuration by config key.- Specified by:
lookupConfig
in interfaceMetricsConfig
- Parameters:
key
- config key to fetch- Returns:
- config value
-
isScopeEnabled
Description copied from interface:MetricsConfig
Reports whether the specified scope is enabled, according to any scope configuration that is part of this metrics configuration.- Specified by:
isScopeEnabled
in interfaceMetricsConfig
- Parameters:
scope
- scope name- Returns:
- true if the scope as a whole is enabled; false otherwise
-
isMeterEnabled
Description copied from interface:MetricsConfig
Reports whether the specified meter within the indicated scope is enabled, according to the metrics configuration.- Specified by:
isMeterEnabled
in interfaceMetricsConfig
- Parameters:
name
- meter nametargetScope
- scope within which to check- Returns:
- whether the meter is enabled
-
enabled
public boolean enabled() -
permitAll
public boolean permitAll() -
roles
-
keyPerformanceIndicatorMetricsConfig
-
tags
-
appName
-
appTagName
-
scoping
-
restRequestEnabled
public boolean restRequestEnabled() -
config
-
gcTimeType
-
builtInMeterNameFormat
-
toString
-
equals
-
hashCode
public int hashCode()
-