entities

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hostname added in v0.4.0

type Hostname string

type RankedTasks added in v0.4.0

type RankedTasks map[Hostname][]Task

func (RankedTasks) String added in v0.4.0

func (rankedTasks RankedTasks) String() string

String returns a beautified string representation of ranked tasks.

type Task added in v0.4.0

type Task struct {
	// TODO decide whether we can get rid of this field.
	Metric model.Metric
	// Weight assigned to the task that was the ranking criteria.
	Weight float64
	// ID represents the unique identifier for the task (Optional).
	ID string
	// Hostname represents the name of the host on which the task was scheduled (Optional).
	Hostname string
}

func (Task) GetHostname added in v0.4.0

func (t Task) GetHostname() string

GetHostname returns the name of the host on which the task was scheduled.

func (Task) GetMetric added in v0.4.0

func (t Task) GetMetric() model.Metric

GetMetric returns the metric as returned by the query.

func (Task) GetTaskID added in v0.4.0

func (t Task) GetTaskID() string

GetTaskID returns the task identifier.

func (Task) GetWeight added in v0.4.0

func (t Task) GetWeight() float64

GetWeight returns the weight assigned to the task as a result of calibration.

func (Task) String added in v0.4.0

func (t Task) String() string

Jump to

Keyboard shortcuts

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