Enum Class VeniceResponseStatusCategory

java.lang.Object
java.lang.Enum<VeniceResponseStatusCategory>
com.linkedin.venice.stats.dimensions.VeniceResponseStatusCategory
All Implemented Interfaces:
Serializable, Comparable<VeniceResponseStatusCategory>, Constable

public enum VeniceResponseStatusCategory extends Enum<VeniceResponseStatusCategory>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static VeniceResponseStatusCategory[] 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

      public static VeniceResponseStatusCategory valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCategory

      public String getCategory()