types

package
v0.9.205 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PredictionMetricData

type PredictionMetricData struct {
	Granularity int64
	Data        []PredictionSample
}

func NewPredictionMetricData

func NewPredictionMetricData() *PredictionMetricData

type PredictionSample

type PredictionSample struct {
	Timestamp    time.Time
	Value        string
	ModelId      string
	PredictionId string
}

type Sample

type Sample struct {
	Timestamp time.Time
	Value     string
}

Sample Data struct representing timestamp and metric value of metric data point

type SamplesByAscTimestamp

type SamplesByAscTimestamp []Sample

func (SamplesByAscTimestamp) Len

func (d SamplesByAscTimestamp) Len() int

func (SamplesByAscTimestamp) Less

func (d SamplesByAscTimestamp) Less(i, j int) bool

func (SamplesByAscTimestamp) Swap

func (d SamplesByAscTimestamp) Swap(i, j int)

type SamplesByDescTimestamp

type SamplesByDescTimestamp []Sample

func (SamplesByDescTimestamp) Len

func (d SamplesByDescTimestamp) Len() int

func (SamplesByDescTimestamp) Less

func (d SamplesByDescTimestamp) Less(i, j int) bool

func (SamplesByDescTimestamp) Swap

func (d SamplesByDescTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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