recommendation

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Container is container measurement
	Container influxdb.Measurement = "container"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRepository

type ContainerRepository struct {
	// contains filtered or unexported fields
}

ContainerRepository is used to operate node measurement of recommendation database

func NewContainerRepository

func NewContainerRepository(influxDBCfg *influxdb.Config) *ContainerRepository

NewContainerRepository creates the ContainerRepository instance

func (*ContainerRepository) CreateContainerRecommendations

func (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) error

CreateContainerRecommendations add containers information container measurement

func (*ContainerRepository) IsTag

func (containerRepository *ContainerRepository) IsTag(column string) bool

IsTag checks the column is tag or not

func (*ContainerRepository) ListContainerRecommendations

func (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName,
	queryCondition *datahub_v1alpha1.QueryCondition,
	kind datahub_v1alpha1.Kind) ([]*datahub_v1alpha1.PodRecommendation, error)

ListContainerRecommendations list container recommendations

Jump to

Keyboard shortcuts

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