public class HttpRequestMetric extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_REQUEST_PATH |
static String |
HTTP_REQUEST_PATH_MATCHED |
(package private) static org.jboss.logging.Logger |
log |
(package private) boolean |
measure
Do not measure requests until/unless a uri path is set
|
(package private) String |
path
URI path used as a tag value for non-error requests
|
(package private) boolean |
pathMatched
True IFF the path was revised by a matcher expression
|
(package private) io.vertx.ext.web.RoutingContext |
routingContext |
(package private) io.micrometer.core.instrument.Timer.Sample |
sample
Store the sample used to measure the request
|
(package private) io.micrometer.core.instrument.Tags |
tags
Store the tags associated with the request (change 1.6.0).
|
(package private) static ConcurrentHashMap<String,String> |
templatePath
Cache of vert.x resolved paths: /item/:id --> /item/{id}
|
static Pattern |
VERTX_ROUTE_PARAM |
| Constructor and Description |
|---|
HttpRequestMetric(Map<Pattern,String> matchPattern,
List<Pattern> ignorePatterns,
String uri)
Extract the path out of the uri.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpRequestPath() |
String |
getPath() |
io.vertx.ext.web.RoutingContext |
getRoutingContext() |
io.micrometer.core.instrument.Timer.Sample |
getSample() |
io.micrometer.core.instrument.Tags |
getTags() |
boolean |
isMeasure() |
boolean |
isPathMatched() |
void |
setRoutingContext(io.vertx.ext.web.RoutingContext routingContext) |
void |
setSample(io.micrometer.core.instrument.Timer.Sample sample) |
void |
setTags(io.micrometer.core.instrument.Tags tags) |
String |
toString() |
static final org.jboss.logging.Logger log
public static final String HTTP_REQUEST_PATH
public static final String HTTP_REQUEST_PATH_MATCHED
public static final Pattern VERTX_ROUTE_PARAM
static final ConcurrentHashMap<String,String> templatePath
volatile io.vertx.ext.web.RoutingContext routingContext
final boolean measure
final String path
final boolean pathMatched
io.micrometer.core.instrument.Timer.Sample sample
io.micrometer.core.instrument.Tags tags
public io.micrometer.core.instrument.Timer.Sample getSample()
public void setSample(io.micrometer.core.instrument.Timer.Sample sample)
public io.micrometer.core.instrument.Tags getTags()
public void setTags(io.micrometer.core.instrument.Tags tags)
public String getPath()
public boolean isMeasure()
public boolean isPathMatched()
public String getHttpRequestPath()
public io.vertx.ext.web.RoutingContext getRoutingContext()
public void setRoutingContext(io.vertx.ext.web.RoutingContext routingContext)
Copyright © 2021 JBoss by Red Hat. All rights reserved.