result

package
v0.0.0-...-160db18 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlice

func NewSlice(bigSlice [][]string, title string) ([]float64, error)

NewSlice will extract a single slice of values from a CSV

Types

type Host

type Host struct {
	Kind      string
	ResultDir string `json:",omitempty"`
	Results   []ResultType
}

Host struct of a Kind has a ResultDir and a list of Results

func (*Host) AddResult

func (h *Host) AddResult(newResult []float64, file string, kind string, res string) []ResultType

AddResult will create a new ResultType which is added to a Host

func (*Host) ToSlice

func (h *Host) ToSlice(stat string) (row []string)

ToSlice helps us print the Host struct data to a CSV row

type Result

type Result struct {
	Hosts   []Host
	Metrics []metrics.Metrics
}

Result struct contains the host results as well as the metrics

type ResultType

type ResultType struct {
	Kind                 string
	Path                 string `json:"-"`
	Resource             string
	Min, Max, Avg, Pct95 float64
}

ResultType is a single Result summary

Jump to

Keyboard shortcuts

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