metrics

package
v3.11.0-0.30.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMetrics

func LogMetrics(metrics []Metrics) error

Types

type BaseMetrics

type BaseMetrics struct {
	// To let the 3rd party know that this log entry is important
	// TODO set this up by config file
	Marker string `json:"marker"`
	Name   string `json:"name"`
	Type   string `json:"type"`
}

type Metrics

type Metrics interface {
	// contains filtered or unexported methods
}

type TestDuration

type TestDuration struct {
	BaseMetrics
	StartTime    time.Time     `json:"startTime"`
	TestDuration time.Duration `json:"testDuration"`
}

func NewTestDuration

func NewTestDuration(name string, startTime time.Time, testDuration time.Duration) TestDuration

func (TestDuration) MarshalJSON

func (td TestDuration) MarshalJSON() ([]byte, error)

func (*TestDuration) UnmarshalJSON

func (td *TestDuration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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