Documentation
¶
Index ¶
- func CommonTimeSeries2ApiTimeSeries(tsList []*common.TimeSeries) v1alpha1.MetricTimeSeriesList
- func ExistsPredictionMetric(metric predictionv1alph1.PredictionMetric, ...) bool
- func GetTimeSeriesPredictionKey(prediction *predictionv1alph1.TimeSeriesPrediction) string
- func IsWindowInSamples(start, end time.Time, samples []v1alpha1.Sample) bool
- func NewMetricContext(prediction *predictionv1alph1.TimeSeriesPrediction) *predconfig.MetricContext
- type Controller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonTimeSeries2ApiTimeSeries ¶
func CommonTimeSeries2ApiTimeSeries(tsList []*common.TimeSeries) v1alpha1.MetricTimeSeriesList
func ExistsPredictionMetric ¶
func ExistsPredictionMetric(metric predictionv1alph1.PredictionMetric, metrics []predictionv1alph1.PredictionMetric) bool
func GetTimeSeriesPredictionKey ¶
func GetTimeSeriesPredictionKey(prediction *predictionv1alph1.TimeSeriesPrediction) string
func IsWindowInSamples ¶
func NewMetricContext ¶
func NewMetricContext(prediction *predictionv1alph1.TimeSeriesPrediction) *predconfig.MetricContext
Types ¶
type Controller ¶
type Controller struct {
client.Client
Recorder record.EventRecorder
UpdatePeriod time.Duration
// contains filtered or unexported fields
}
func NewController ¶
func NewController( client client.Client, recorder record.EventRecorder, updatePeriod time.Duration, predictors map[predictionv1alph1.AlgorithmType]prediction.Interface, ) *Controller
func (*Controller) SetupWithManager ¶
func (tc *Controller) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager creates a controller and register to controller manager.
func (*Controller) UpdateStatus ¶
func (tc *Controller) UpdateStatus(ctx context.Context, tsPrediction *v1alpha1.TimeSeriesPrediction, newStatus *v1alpha1.TimeSeriesPredictionStatus) error
Click to show internal directories.
Click to hide internal directories.