advisor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNamespace = "default"
)

Variables

This section is empty.

Functions

func ResourceToPromQueryExpr

func ResourceToPromQueryExpr(namespace string, name string, resourceName *corev1.ResourceName) string

Types

type Advisor

type Advisor interface {
	// Name return name for current Interface
	Name() string

	// Advise analysis and give advice in ProposedRecommendation
	Advise(proposed *types.ProposedRecommendation) error
}

func NewAdvisors

func NewAdvisors(ctx *types.Context) (advisors []Advisor)

type EHPAAdvisor

type EHPAAdvisor struct {
	*types.Context
}

func (*EHPAAdvisor) Advise

func (a *EHPAAdvisor) Advise(proposed *types.ProposedRecommendation) error

func (*EHPAAdvisor) Name

func (a *EHPAAdvisor) Name() string

type ResourceRequestAdvisor

type ResourceRequestAdvisor struct {
	*types.Context
}

func (*ResourceRequestAdvisor) Advise

func (*ResourceRequestAdvisor) Name

func (a *ResourceRequestAdvisor) Name() string

Jump to

Keyboard shortcuts

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