Package com.tnsai.quality.slo
Enum Class SLOType
- All Implemented Interfaces:
Serializable,Comparable<SLOType>,Constable
What kind of metric an SLO measures (issue #92).
- 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 ConstantsEnum ConstantDescriptionSuccessful-attempt fraction over total attempts.User-defined metric.Fraction of attempts that produced an error (any error class).Fraction of attempts whose latency falls underTarget.latencyThresholdMs. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AVAILABILITY
Successful-attempt fraction over total attempts. -
LATENCY
Fraction of attempts whose latency falls underTarget.latencyThresholdMs. Reported as percentage — e.g. p95 invalid input: '<' 3s expressed as "95% of attempts under 3000ms". -
ERROR_RATE
Fraction of attempts that produced an error (any error class). Subset ofAVAILABILITYtypically, but exposed separately because consumers often want a tighter threshold for error-rate than for raw availability. -
CUSTOM
User-defined metric. The evaluator reads a custom counter or gauge identified by name. Used as the escape hatch for cost, throughput, queue depth, etc.
-
-
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
-