calibrator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package calibrator tunes task budgets and scheduling based on historical usage data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalibrationResult

type CalibrationResult struct {
	InferredBudget int64
	Confidence     string
	SampleCount    int
	Variance       float64
	Source         string
}

CalibrationResult represents the inferred budget and confidence.

type Calibrator

type Calibrator struct {
	// contains filtered or unexported fields
}

Calibrator infers subscription budgets from snapshots.

func New

func New(database *db.DB, cfg *config.Config) *Calibrator

New creates a new Calibrator.

func (*Calibrator) Calibrate

func (c *Calibrator) Calibrate(provider string) (CalibrationResult, error)

Calibrate computes an inferred weekly budget for a provider.

func (*Calibrator) GetBudget

func (c *Calibrator) GetBudget(provider string) (budget.BudgetEstimate, error)

GetBudget returns a budget estimate for the budget manager.

Jump to

Keyboard shortcuts

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