latency

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Desc = prometheus.NewDesc(
		"rds_latency",
		"The difference between the current time and timestamp in the metric itself",
		[]string{"instance", "region"},
		nil,
	)
)

Functions

This section is empty.

Types

type Latency

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

func (*Latency) Duration

func (l *Latency) Duration() time.Duration

func (*Latency) IsZero

func (l *Latency) IsZero() bool

func (*Latency) TakeOldest

func (l *Latency) TakeOldest(t time.Time)

Jump to

Keyboard shortcuts

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