Versions in this module Expand all Collapse all v0 v0.1.0 Oct 15, 2022 Changes in this version + const DefaultName + const ManagerLogPrefix + var ErrNoData = errors.New("obi have no data") + var ErrNotFoundInCache = errors.New("not Found In Memory Cache") + var ErrTypeAssertion = errors.New("type assertion err") + func IsResourceNode(o schedv1alpha1.ObservabilityIndicantSpecTargetRef) bool + func IsResourcePod(o schedv1alpha1.ObservabilityIndicantSpecTargetRef) bool + func SchedulerNamespace() string + type FullMetrics struct + Avg float64 + Max float64 + Min float64 + type Manager struct + func NewManager(client clientset.Interface, snapshotSharedLister framework.SharedLister, ...) *Manager + func (mgr *Manager) GetNodeMetric(ctx context.Context, node *v1.Node) (metric MetricData, err error) + func (mgr *Manager) GetPodMetric(ctx context.Context, pod *v1.Pod) (metric MetricData, err error) + func (mgr *Manager) GetScoreSpec(ctx context.Context) (logic string) + func (mgr *Manager) ObservabilityIndicantAdd(obj interface{}) + func (mgr *Manager) ObservabilityIndicantDelete(obj interface{}) + func (mgr *Manager) ObservabilityIndicantUpdate(old interface{}, new interface{}) + func (mgr *Manager) RsAdd(obj interface{}) + func (mgr *Manager) RsDelete(obj interface{}) + func (mgr *Manager) RsUpdate(old interface{}, new interface{}) + func (mgr *Manager) SchedulerAdd(obj interface{}) + func (mgr *Manager) SchedulerDelete(obj interface{}) + func (mgr *Manager) SchedulerUpdate(old interface{}, new interface{}) + func (mgr *Manager) ScoreAdd(obj interface{}) + func (mgr *Manager) ScoreDelete(obj interface{}) + func (mgr *Manager) ScoreUpdate(old interface{}, new interface{}) + type Manager1 interface + GetNodeMetric func(ctx context.Context, node *v1.Node) (metric MetricData, err error) + GetPodMetric func(ctx context.Context, pod *v1.Pod) (metric MetricData, err error) + GetScoreSpec func(ctx context.Context) string + type MetricData map[string]*FullMetrics + type NodeWithMetric struct + Metric MetricData + Node *v1.Node + type PodWithMetric struct + Metric MetricData + Pod *v1.Pod