Enum Class VeniceResponseStatusCategory
java.lang.Object
java.lang.Enum<VeniceResponseStatusCategory>
com.linkedin.venice.stats.dimensions.VeniceResponseStatusCategory
- All Implemented Interfaces:
Serializable
,Comparable<VeniceResponseStatusCategory>
,Constable
How Venice categorizes the response status of a request:
We are emitting both
HttpResponseStatusCodeCategory
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VeniceResponseStatusCategory
Returns the enum constant of this class with the specified name.static VeniceResponseStatusCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
FAIL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCategory
-