Class AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
java.lang.Object
io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
- All Implemented Interfaces:
Prototype.Api,AutoHttpMetricsConfig
- Enclosing class:
AutoHttpMetricsConfig.BuilderBase<BUILDER extends AutoHttpMetricsConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsConfig>
protected static class AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
extends Object
implements AutoHttpMetricsConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig
AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig.BuilderBase<BUILDER extends AutoHttpMetricsConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAutoHttpMetricsConfigImpl(AutoHttpMetricsConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Whether automatic metrics collection as a whole is enabled.booleaninthashCode()optIn()Elective attribute for which to opt in.paths()Automatic metrics collection settings.sockets()Socket names for sockets to be instrumented with automatic metrics.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig
isMeasured, isOptedIn
-
Constructor Details
-
AutoHttpMetricsConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:AutoHttpMetricsConfigWhether automatic metrics collection as a whole is enabled.- Specified by:
enabledin interfaceAutoHttpMetricsConfig- Returns:
- automatic metrics collection enabled
-
sockets
Description copied from interface:AutoHttpMetricsConfigSocket names for sockets to be instrumented with automatic metrics. Defaults to all sockets.- Specified by:
socketsin interfaceAutoHttpMetricsConfig- Returns:
- socket names
-
paths
Description copied from interface:AutoHttpMetricsConfigAutomatic metrics collection settings. Default excludes built-in Helidon paths (e.g., metrics, health). A request's path and HTTP method are checked against each entry underpathsin order.- If a request matches no entry, then the request is measured.
- If a request matches multiple entries, then the first match wins.
- Specified by:
pathsin interfaceAutoHttpMetricsConfig- Returns:
- automatic metrics collection settings
-
optIn
Description copied from interface:AutoHttpMetricsConfigElective attribute for which to opt in. Each string in the list is of the formmeter-name:attribute-namewheremeter-nameis the name of the meter andattribute-nameis the name of an attribute (tag) which is optional on that meter.- Specified by:
optInin interfaceAutoHttpMetricsConfig- Returns:
- opt-in attributes to be provided
-
toString
-
equals
-
hashCode
public int hashCode()
-