lib

package
v0.0.0-...-152fb42 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: NCSA Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Telemetry

type Telemetry struct {
	Status       int
	RequestDelta time.Duration
}

type TelemetryManager

type TelemetryManager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

TODO: Break metrics down into "since reset" and "since restart" and provide a persistence mechanism.

func (*TelemetryManager) AverageLatencyWindow

func (m *TelemetryManager) AverageLatencyWindow() time.Duration

func (*TelemetryManager) MaxLatency

func (m *TelemetryManager) MaxLatency() time.Duration

func (*TelemetryManager) MinLatency

func (m *TelemetryManager) MinLatency() time.Duration

func (*TelemetryManager) Num400s

func (m *TelemetryManager) Num400s() int

func (*TelemetryManager) Num500s

func (m *TelemetryManager) Num500s() int

func (*TelemetryManager) NumRequests

func (m *TelemetryManager) NumRequests() int

func (*TelemetryManager) Request

func (m *TelemetryManager) Request(delta time.Duration, code int)

Jump to

Keyboard shortcuts

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