| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Outcome[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public io.micrometer.core.instrument.Tag asTag()
Outcome as a Tag named outcome.outcome Tagpublic static Outcome forStatus(int status)
Outcome for the given HTTP status code.status - the HTTP status code