Package com.tnsai.quality.slo
Interface SLOScope
- All Known Implementing Classes:
SLOScope.ForAgent,SLOScope.ForCapability,SLOScope.ForTenant,SLOScope.Global
public sealed interface SLOScope
permits SLOScope.Global, SLOScope.ForTenant, SLOScope.ForAgent, SLOScope.ForCapability
What an
SLODefinition measures (issue #92): the framework
as a whole, a single tenant, a specific agent inside a tenant, or
every implementation of a Capability interface.
Scope determines which events the SLOEvaluator counts
when computing compliance — a ForTenant("acme") SLO ignores
events from tenant beta.
- Since:
- 0.5.0 (issue #92)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordSingle-agent-within-tenant scope.static final recordEvery implementation of a capability interface — useful for cross-tenant SLOs like "all chat agents must hit p95 invalid input: '<' 3s".static final recordSingle-tenant scope.static final recordWhole-framework scope — every event counts. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(EventScope attempt) Returns true ifattempt(an event-level scope description) falls within this SLO's scope.
-
Method Details
-
matches
Returns true ifattempt(an event-level scope description) falls within this SLO's scope. Used by the evaluator to decide which counted attempts contribute to this SLO.
-