recommendations

package
v4.2.508+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Container  influxdb.Measurement = "container"
	Controller influxdb.Measurement = "controller"
)

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 *InternalInflux.Config) *ContainerRepository

NewContainerRepository creates the ContainerRepository instance

func (*ContainerRepository) CreateContainerRecommendations

func (c *ContainerRepository) CreateContainerRecommendations(in *ApiRecommendations.CreatePodRecommendationsRequest) error

CreateContainerRecommendations add containers information container measurement

func (*ContainerRepository) IsTag

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

IsTag checks the column is tag or not

func (*ContainerRepository) ListContainerRecommendations

ListContainerRecommendations list container recommendations

type ControllerRepository

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

func NewControllerRepository

func NewControllerRepository(influxDBCfg *InternalInflux.Config) *ControllerRepository

func (*ControllerRepository) CreateControllerRecommendations

func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*ApiRecommendations.ControllerRecommendation) error

Jump to

Keyboard shortcuts

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