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 (*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.
Click to show internal directories.
Click to hide internal directories.