influxdb

package
v4.2.716+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GpuMetricUsedMap = map[FormatEnum.GpuMetricType]bool{}

Functions

This section is empty.

Types

type Gpu

type Gpu struct {
	Name     string
	Uuid     string
	Metadata GpuMetadata
	Spec     GpuSpec
}

func NewGpu

func NewGpu() *Gpu

type GpuDAO

type GpuDAO interface {
	ListGpus(host, minorNumber string, condition *DBCommon.QueryCondition) ([]*Gpu, error)
}

type GpuMetadata

type GpuMetadata struct {
	Host        string
	Instance    string
	Job         string
	MinorNumber string
}

type GpuMetric

type GpuMetric struct {
	Gpu
	Metrics map[FormatEnum.GpuMetricType][]FormatTypes.Sample
}

func NewGpuMetric

func NewGpuMetric() *GpuMetric

type GpuMetricMap

type GpuMetricMap map[string]*GpuMetric

func NewGpuMetricMap

func NewGpuMetricMap() GpuMetricMap

func (*GpuMetricMap) AddGpuMetric

func (p *GpuMetricMap) AddGpuMetric(gpu *Gpu, metricType FormatEnum.GpuMetricType, sample FormatTypes.Sample)

type GpuPrediction

type GpuPrediction struct {
	Gpu
	Granularity int64
	Metrics     []FormatTypes.PredictionSample
}

func NewGpuPrediction

func NewGpuPrediction() *GpuPrediction

type GpuPredictionMap

type GpuPredictionMap map[FormatEnum.GpuMetricType][]*GpuPrediction

func NewGpuPredictionMap

func NewGpuPredictionMap() GpuPredictionMap

func (*GpuPredictionMap) AddGpuPrediction

func (p *GpuPredictionMap) AddGpuPrediction(gpu *Gpu, granularity int64, metricType FormatEnum.GpuMetricType, sample FormatTypes.PredictionSample)

type GpuSpec

type GpuSpec struct {
	MemoryTotal float32
}

type MetricsDAO

type MetricsDAO interface {
	ListMetrics(host, minorNumber string, metricTypes []FormatEnum.MetricType, condition *DBCommon.QueryCondition) (GpuMetricMap, error)
}

type PredictionsDAO

type PredictionsDAO interface {
	CreatePredictions(GpuPredictionMap) error
	ListPredictions(host, minorNumber, modelId, predictionId, granularity string, condition *DBCommon.QueryCondition) (GpuPredictionMap, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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