predictions

package
v4.2.509+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Node      influxdb.Measurement = "node"
	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 Repository to access containers' prediction data

func NewContainerRepositoryWithConfig

func NewContainerRepositoryWithConfig(influxDBCfg InternalInflux.Config) *ContainerRepository

NewContainerRepositoryWithConfig New container repository with influxDB configuration

func (*ContainerRepository) CreateContainerPrediction

func (r *ContainerRepository) CreateContainerPrediction(in *ApiPredictions.CreatePodPredictionsRequest) error

func (*ContainerRepository) CreatePredictions

func (r *ContainerRepository) CreatePredictions(predictions []*DaoPredictionTypes.ContainerPredictionSample) error

func (*ContainerRepository) ListContainerPredictionsByRequest

func (r *ContainerRepository) ListContainerPredictionsByRequest(request DaoPredictionTypes.ListPodPredictionsRequest) ([]*ApiPredictions.PodPrediction, error)

ListContainerPredictionsByRequest list containers' prediction from influxDB

func (*ContainerRepository) ListPredictions

ListContainerPredictionsByRequest list containers' prediction from influxDB

type NodeRepository

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

func NewNodeRepositoryWithConfig

func NewNodeRepositoryWithConfig(influxDBCfg InternalInflux.Config) *NodeRepository

func (*NodeRepository) CreateNodePrediction

func (r *NodeRepository) CreateNodePrediction(in *ApiPredictions.CreateNodePredictionsRequest) error

func (*NodeRepository) CreatePredictions

func (r *NodeRepository) CreatePredictions(predictions DaoPredictionTypes.NodePredictionMap) error

func (*NodeRepository) ListNodePredictionsByRequest

func (r *NodeRepository) ListNodePredictionsByRequest(request DaoPredictionTypes.ListNodePredictionsRequest) ([]*ApiPredictions.NodePrediction, error)

Jump to

Keyboard shortcuts

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