Interface AutoHttpMetricsPathConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
AutoHttpMetricsPathConfig.BuilderBase.AutoHttpMetricsPathConfigImpl
Settings for path-based automatic metrics configuration.
An HTTP request matches a path entry if the request path matches the entry's path pattern and the request's HTTP method
matches one of the entry's methods. If there no methods list for the entry, then all HTTP methods match the entry.
If a request matches an entry, then the entry's enabled value (which defaults to ) determines the entry's vote
whether the request should be measured. If a request matches multiple entries, the vote of the last matched entry wins.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forAutoHttpMetricsPathConfig.static classAutoHttpMetricsPathConfig.BuilderBase<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig> Fluent API builder base forAutoHttpMetricsPathConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(AutoHttpMetricsPathConfig instance) Create a new fluent API builder from an existing instance.static AutoHttpMetricsPathConfigcreate()Create a new instance with default values.static AutoHttpMetricsPathConfigDeprecated.static AutoHttpMetricsPathConfigCreate a new instance from configuration.booleanenabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.default booleanmatchesMethod(Method method) Checks whether theMethodmatches the method(s) in the path config.default booleanmatchesPath(UriPath uriPath) Checks whether theUriPathmatches the path in the path config.methods()HTTP methods for which this path config applies; default is to match all HTTP methods.path()Path matching expression for this path config entry.Path matcher for internal use by this component.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
matchesPath
Checks whether theUriPathmatches the path in the path config.- Parameters:
uriPath-UriPathto test- Returns:
- true if the
UriPathmatches the config's path matcher; false otherwise
-
matchesMethod
Checks whether theMethodmatches the method(s) in the path config.- Parameters:
method-Methodto test- Returns:
- true if the specified method matches the method selection in the config; false otherwise
-
enabled
boolean enabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.- Returns:
- whether auto metrics are to be enabled for this path config's path matcher and HTTP methods
-
path
String path()Path matching expression for this path config entry.- Returns:
- path matching expression
-
methods
HTTP methods for which this path config applies; default is to match all HTTP methods.- Returns:
- HTTP methods
-
pathMatcher
PathMatcher pathMatcher()Path matcher for internal use by this component.- Returns:
PathMatcherderived from thepath()setting
-
create(io.helidon.config.Config)