types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BorweinInferenceResults

type BorweinInferenceResults struct {
	Timestamp int64 // milli second
	// the first key is the pod UID
	// the second key is the container name
	// the value array holds the all inference result for a container.
	Results map[string]map[string][]*borweininfsvc.InferenceResult
}

BorweinInferenceResults is a descriptor for borwein inference results.

func NewBorweinInferenceResults

func NewBorweinInferenceResults() *BorweinInferenceResults

func (*BorweinInferenceResults) RangeInferenceResults

func (bir *BorweinInferenceResults) RangeInferenceResults(fn func(podUID, containerName string, result *borweininfsvc.InferenceResult))

func (*BorweinInferenceResults) SetInferenceResults

func (bir *BorweinInferenceResults) SetInferenceResults(podUID string, containerName string, results ...*borweininfsvc.InferenceResult)

type BorweinParameter

type BorweinParameter struct {
	AbnormalRatioThreshold float64 `json:"abnormal_ratio_threshold"`
	OffsetMax              float64 `json:"offset_max"`
	OffsetMin              float64 `json:"offset_min"`
	RampUpStep             float64 `json:"ramp_up_step"`
	RampDownStep           float64 `json:"ramp_down_step"`
	Version                string  `json:"version"`
}

Jump to

Keyboard shortcuts

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