scores

package
v4.2.606+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SimulatedSchedulingScoreTime is the time simulatedSchedulingScore information is inserted to databse
	SimulatedSchedulingScoreTime simulatedSchedulingScoreTag = "time"

	// SimulatedSchedulingScoreScoreBefore Represents the field name in influxdb
	SimulatedSchedulingScoreScoreBefore simulatedSchedulingScoreField = "score_before"
	// SimulatedSchedulingScoreScoreAfter Represents the field name in influxdb
	SimulatedSchedulingScoreScoreAfter simulatedSchedulingScoreField = "score_after"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SimulatedSchedulingScoreEntity

type SimulatedSchedulingScoreEntity struct {
	Time        time.Time
	ScoreBefore *float64
	ScoreAfter  *float64
}

SimulatedSchedulingScoreEntity Represents a record in influxdb

func NewSimulatedSchedulingScoreEntityFromMap

func NewSimulatedSchedulingScoreEntityFromMap(data map[string]string) SimulatedSchedulingScoreEntity

NewSimulatedSchedulingScoreEntityFromMap Build entity from map

func (SimulatedSchedulingScoreEntity) InfluxDBPoint

func (e SimulatedSchedulingScoreEntity) InfluxDBPoint(measurementName string) (*influxdb_client.Point, error)

InfluxDBPoint Build influxdb point base on current entity's properties

Jump to

Keyboard shortcuts

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