perf_util

package
v0.0.0-...-8f289dc Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostnameFromUrl

func GetHostnameFromUrl(url string) string

Get hostname from url, for example, https://master.eng.vmware.com:8443, extract master.eng.vmware.com

func WriteDataPoints

func WriteDataPoints(now time.Time, points []WavefrontDataPoint, wavefrontPathDir string, prefix string)

Types

type LatencyMetric

type LatencyMetric struct {
	Mid float32
	Min float32
	Max float32
	P99 float32
}

type OperationLatencyMetric

type OperationLatencyMetric struct {
	Latency LatencyMetric
	Valid   bool
}

type WavefrontDataPoint

type WavefrontDataPoint struct {
	MetricName  string
	MetricValue float32
	Timestamp   time.Time
	Source      string
	Tags        []WavefrontTag
}

func (WavefrontDataPoint) String

func (this WavefrontDataPoint) String() string

type WavefrontTag

type WavefrontTag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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