Enum VeniceResponseStatusCategory
- java.lang.Object
-
- java.lang.Enum<VeniceResponseStatusCategory>
-
- com.linkedin.venice.stats.dimensions.VeniceResponseStatusCategory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VeniceResponseStatusCategory>
public enum VeniceResponseStatusCategory extends java.lang.Enum<VeniceResponseStatusCategory>
How Venice categorizes the response status of a request: We are emitting bothHttpResponseStatusCodeCategory
and this enum to capture the http standard as well as the Venice specific categorization. For instance, venice considers key not found as a healthy response, but http standard would consider it a 404 (4xx) which leads to checking for both 200 and 404 to account for all healthy requests. This dimensions makes it easier to make Venice specific aggregations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
HEALTHY
TARDY
THROTTLED
UNHEALTHY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCategory()
static VeniceResponseStatusCategory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VeniceResponseStatusCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEALTHY
public static final VeniceResponseStatusCategory HEALTHY
-
UNHEALTHY
public static final VeniceResponseStatusCategory UNHEALTHY
-
TARDY
public static final VeniceResponseStatusCategory TARDY
-
THROTTLED
public static final VeniceResponseStatusCategory THROTTLED
-
BAD_REQUEST
public static final VeniceResponseStatusCategory BAD_REQUEST
-
-
Method Detail
-
values
public static VeniceResponseStatusCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VeniceResponseStatusCategory c : VeniceResponseStatusCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VeniceResponseStatusCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCategory
public java.lang.String getCategory()
-
-