public enum Outcome extends Enum<Outcome>
Enum Constant and Description |
---|
CLIENT_ERROR
Outcome of the request was client error.
|
INFORMATIONAL
Outcome of the request was informational.
|
REDIRECTION
Outcome of the request was redirection.
|
SERVER_ERROR
Outcome of the request was server error.
|
SUCCESS
Outcome of the request was success.
|
UNKNOWN
Outcome of the request was unknown.
|
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.Tag |
asTag()
Returns the
Outcome as a Tag named outcome . |
static Outcome |
forStatus(int status)
Return the
Outcome for the given HTTP status code. |
static Outcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Outcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Outcome INFORMATIONAL
public static final Outcome SUCCESS
public static final Outcome REDIRECTION
public static final Outcome CLIENT_ERROR
public static final Outcome SERVER_ERROR
public static final Outcome UNKNOWN
public static Outcome[] values()
for (Outcome c : Outcome.values()) System.out.println(c);
public static Outcome valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic io.micrometer.core.instrument.Tag asTag()
Outcome
as a Tag
named outcome
.outcome
Tag
public static Outcome forStatus(int status)
Outcome
for the given HTTP status
code.status
- the HTTP status codeCopyright © 2020 Pivotal Software, Inc.. All rights reserved.