public class HttpMetricsCommon extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
METHOD_UNKNOWN |
static Pattern |
MULTIPLE_SLASH_PATTERN |
static io.micrometer.core.instrument.Tag |
STATUS_RESET |
(package private) static io.micrometer.core.instrument.Tag |
STATUS_UNKNOWN |
static Pattern |
TRAILING_SLASH_PATTERN |
static io.micrometer.core.instrument.Tag |
URI_NOT_FOUND |
static io.micrometer.core.instrument.Tag |
URI_REDIRECTION |
static io.micrometer.core.instrument.Tag |
URI_ROOT |
(package private) static io.micrometer.core.instrument.Tag |
URI_UNKNOWN |
| Constructor and Description |
|---|
HttpMetricsCommon() |
| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Tag |
method(String method)
Creates an
method Tag derived from the given HTTP method. |
static io.micrometer.core.instrument.Tag |
outcome(int statusCode)
Creates an
outcome Tag derived from the given response code. |
static io.micrometer.core.instrument.Tag |
status(int statusCode)
Creates a
status tag based on the status of the given response code. |
static io.micrometer.core.instrument.Tag |
uri(String pathInfo,
int code)
Creates a
uri tag based on the URI of the given request. |
public static final io.micrometer.core.instrument.Tag URI_NOT_FOUND
public static final io.micrometer.core.instrument.Tag URI_REDIRECTION
public 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
public static final io.micrometer.core.instrument.Tag STATUS_RESET
public static final io.micrometer.core.instrument.Tag METHOD_UNKNOWN
public static final Pattern TRAILING_SLASH_PATTERN
public static final Pattern MULTIPLE_SLASH_PATTERN
public static io.micrometer.core.instrument.Tag method(String method)
method Tag derived from the given HTTP method.method - the HTTP methodpublic static io.micrometer.core.instrument.Tag status(int statusCode)
status tag based on the status of the given response code.statusCode - the HTTP response codepublic static io.micrometer.core.instrument.Tag outcome(int statusCode)
outcome Tag derived from the given response code.statusCode - the HTTP response codepublic 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 © 2021 JBoss by Red Hat. All rights reserved.