model

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRPCRPCsKey              = "RPCs"
	GRPCFailurePercentageKey = "FailurePercentage"
	GRPCLatencyAvgKey        = "LatencyAvg"
	GRPCSentBytesAvgKey      = "SentBytesAvg"
	GRPCReceivedBytesAvgKey  = "ReceivedBytesAvg"

	HTTPRequestsKey          = "Requests"
	HTTPFailurePercentageKey = "FailurePercentage"
	HTTPLatencyAvgKey        = "LatencyAvg"
	HTTPSentBytesAvgKey      = "SentBytesAvg"
	HTTPReceivedBytesAvgKey  = "ReceivedBytesAvg"
)
View Source
const (
	RenderFormatMarkdown RenderFormat = "markdown"
	RenderFormatText                  = "text"
	RenderFormatJson                  = "json"
)
View Source
const (
	TestSucceeded TestStatus = "Succeeded"
	TestFailed               = "Failed"
	TestCancelled            = "Cancelled"
)
View Source
const (
	LotusKind = "Lotus"
)
View Source
const (
	NoDataValue float64 = -1
)

Variables

View Source
var (
	ControllerKind = schema.GroupVersionKind{
		Group:   lotusv1beta1.SchemeGroupVersion.Group,
		Version: lotusv1beta1.SchemeGroupVersion.Version,
		Kind:    LotusKind,
	}
)

Functions

This section is empty.

Types

type MetricsSummary

type MetricsSummary struct {
	GRPCRPCTotal          float64
	GRPCFailurePercentage float64
	GRPCAll               ValueByLabel
	GRPCByMethod          map[string]ValueByLabel

	HTTPRequestTotal      float64
	HTTPFailurePercentage float64
	HTTPAll               ValueByLabel
	HTTPByPath            map[string]ValueByLabel

	VirtualUserStartedTotal float64
	VirtualUserFailedTotal  float64
}

type RenderFormat

type RenderFormat string

type Result

type Result struct {
	TestID                   string
	Status                   TestStatus
	MetricsSummary           *MetricsSummary
	FailureReason            string
	FailedChecks             []string
	StartedTimestamp         time.Time
	FinishedTimestamp        time.Time
	GrafanaGRPCDashboardsURL string
	GrafanaHTTPDashboardsURL string
}

func (*Result) Render

func (r *Result) Render(format RenderFormat) ([]byte, error)

func (*Result) SetFailed

func (r *Result) SetFailed(reason string)

func (*Result) SetGrafanaDashboardURLs

func (r *Result) SetGrafanaDashboardURLs(base string)

type TestStatus

type TestStatus string

type ValueByLabel

type ValueByLabel map[string]float64

Jump to

Keyboard shortcuts

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