public class VertxMetricsTags extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static io.micrometer.core.instrument.Tag |
METHOD_UNKNOWN |
(package private) static io.micrometer.core.instrument.Tag |
STATUS_RESET |
(package private) static io.micrometer.core.instrument.Tag |
STATUS_UNKNOWN |
(package private) static io.micrometer.core.instrument.Tag |
URI_NOT_FOUND |
(package private) static io.micrometer.core.instrument.Tag |
URI_REDIRECTION |
(package private) static io.micrometer.core.instrument.Tag |
URI_ROOT |
(package private) static io.micrometer.core.instrument.Tag |
URI_UNKNOWN |
| Constructor and Description |
|---|
VertxMetricsTags() |
| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
method(io.vertx.core.http.HttpMethod method)
Creates a
method tag based on the HttpServerRequest.method()
method} of the given request. |
static io.micrometer.core.instrument.Tag |
outcome(io.vertx.core.http.HttpClientResponse response)
Creates an
outcome Tag derived from the given response. |
static io.micrometer.core.instrument.Tag |
outcome(io.vertx.core.http.HttpServerResponse response)
Creates an
outcome Tag derived from the given response. |
(package private) static void |
parseUriPath(RequestMetric requestMetric,
Map<Pattern,String> matchPattern,
List<Pattern> ignorePatterns,
String uri)
Extract the path out of the uri.
|
static io.micrometer.core.instrument.Tag |
status(int statusCode)
Creates a
status tag based on the status of the given response. |
static io.micrometer.core.instrument.Tag |
uri(String pathInfo,
int code)
Creates a
uri tag based on the URI of the given request. |
static final io.micrometer.core.instrument.Tag URI_NOT_FOUND
static final io.micrometer.core.instrument.Tag URI_REDIRECTION
static final io.micrometer.core.instrument.Tag URI_ROOT
static final io.micrometer.core.instrument.Tag URI_UNKNOWN
static final io.micrometer.core.instrument.Tag STATUS_UNKNOWN
static final io.micrometer.core.instrument.Tag STATUS_RESET
static final io.micrometer.core.instrument.Tag METHOD_UNKNOWN
public static io.micrometer.core.instrument.Tag method(io.vertx.core.http.HttpMethod method)
method tag based on the HttpServerRequest.method()
method} of the given request.method - the request methodpublic static io.micrometer.core.instrument.Tag status(int statusCode)
status tag based on the status of the given response.statusCode - the HTTP response codepublic static io.micrometer.core.instrument.Tag outcome(io.vertx.core.http.HttpServerResponse response)
outcome Tag derived from the given response.response - the responsepublic static io.micrometer.core.instrument.Tag outcome(io.vertx.core.http.HttpClientResponse response)
outcome Tag derived from the given response.response - the responsepublic static io.micrometer.core.instrument.Tag uri(String pathInfo, int code)
uri tag based on the URI of the given request.
Falling back to REDIRECTION for 3xx responses, NOT_FOUND
for 404 responses, root for requests with no path info, and UNKNOWN
for all other requests.pathInfo - code - status code of the responseCopyright © 2020 JBoss by Red Hat. All rights reserved.