slo

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package slo evaluates immutable v1 GA service objectives from a measured observation window. It deliberately does not collect metrics; production collectors export the Sample document so certification stays reproducible.

Index

Constants

View Source
const Schema = "fenced.slo/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name     string  `json:"name"`
	Measured float64 `json:"measured"`
	Target   string  `json:"target"`
	Passed   bool    `json:"passed"`
	Evidence int64   `json:"evidence"`
}

type Report

type Report struct {
	Schema string  `json:"schema"`
	Passed bool    `json:"passed"`
	Checks []Check `json:"checks"`
}

func Evaluate

func Evaluate(sample Sample) (Report, error)

type Sample

type Sample struct {
	Schema                         string  `json:"schema"`
	WindowSeconds                  int64   `json:"windowSeconds"`
	ControlRequests                int64   `json:"controlRequests"`
	ControlFailures                int64   `json:"controlFailures"`
	AcceptedTasks                  int64   `json:"acceptedTasks"`
	PersistentlyLostTasks          int64   `json:"persistentlyLostTasks"`
	SchedulingMeasurements         int64   `json:"schedulingMeasurements"`
	SchedulingDecisionP99Seconds   float64 `json:"schedulingDecisionP99Seconds"`
	RecoveryMeasurements           int64   `json:"recoveryMeasurements"`
	RuntimeRecoveryP99Seconds      float64 `json:"runtimeRecoveryP99Seconds"`
	BudgetStopMeasurements         int64   `json:"budgetStopMeasurements"`
	BudgetHardStopP99Seconds       float64 `json:"budgetHardStopP99Seconds"`
	ExpectedAuditEvents            int64   `json:"expectedAuditEvents"`
	RecordedAuditEvents            int64   `json:"recordedAuditEvents"`
	TenantStateRPOSeconds          float64 `json:"tenantStateRpoSeconds"`
	ControlPlaneRTOSeconds         float64 `json:"controlPlaneRtoSeconds"`
	UnauthorizedHighRiskExecutions int64   `json:"unauthorizedHighRiskExecutions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL