errorbudget

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineStatus

func DetermineStatus(target float64, actual float64, budgetPercente float64, burnRates []burnrate.BurnRate) string

Types

type Budget

type Budget struct {
	// Total error budget for the window (e.g., "43.2m" for 43.2 minutes)
	Total string

	// Consumed error budget so far (e.g., "10.5m")
	Consumed string

	// Remaining error budget (e.g., "32.7m")
	Remaining string

	// PercentRemaining is the percentage of budget left (e.g., 75.69)
	PercentRemaining float64
}

func Calculate

func Calculate(window string, sliBurnRateWindowed float64, sliErrorRate float64) (*Budget, float64, error)

Jump to

Keyboard shortcuts

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