prediction

package
v4.2.456+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Node is node measurement
	Node influxdb.Measurement = "node"
	// 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 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 *datahub_v1alpha1.CreatePodPredictionsRequest) error

func (*ContainerRepository) ListContainerPredictionsByRequest

func (r *ContainerRepository) ListContainerPredictionsByRequest(request DaoPrediction.ListPodPredictionsRequest) ([]*datahub_v1alpha1.PodPrediction, error)

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 (*NodeRepository) ListNodePredictionsByRequest

func (r *NodeRepository) ListNodePredictionsByRequest(request DaoPrediction.ListNodePredictionsRequest) ([]*datahub_v1alpha1.NodePrediction, error)

Jump to

Keyboard shortcuts

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