Enum Class SLOStatus

java.lang.Object
java.lang.Enum<SLOStatus>
com.tnsai.quality.slo.SLOStatus
All Implemented Interfaces:
Serializable, Comparable<SLOStatus>, Constable

public enum SLOStatus extends Enum<SLOStatus>
Coarse-grained health bucket for an SLOState (issue #92). Drives dashboard color coding and SLOAwareHook degradation decisions.
Since:
0.5.0 (issue #92)
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Compliance still above target but the long-window burn rate is elevated — operators should look but no immediate action required.
    Both short- and long-window burn rates over threshold — the budget is being consumed faster than the window allows.
    Budget for the rolling window is fully consumed.
    Compliance is comfortably above target; no burn-rate alerts firing.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SLOStatus
    Returns the enum constant of this class with the specified name.
    static SLOStatus[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HEALTHY

      public static final SLOStatus HEALTHY
      Compliance is comfortably above target; no burn-rate alerts firing. Status of a healthy production SLO 95%+ of the time.
    • AT_RISK

      public static final SLOStatus AT_RISK
      Compliance still above target but the long-window burn rate is elevated — operators should look but no immediate action required.
    • BURNING

      public static final SLOStatus BURNING
      Both short- and long-window burn rates over threshold — the budget is being consumed faster than the window allows. Active incident.
    • EXHAUSTED

      public static final SLOStatus EXHAUSTED
      Budget for the rolling window is fully consumed. Degradation policies (if configured) take effect.
  • Method Details

    • values

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