ttl

package
v0.13.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTTL = 3 * time.Minute
)

Functions

This section is empty.

Types

type GaugeVec

type GaugeVec struct {
	*prometheus.GaugeVec
	// contains filtered or unexported fields
}

func NewGaugeVecWithTTL

func NewGaugeVecWithTTL(opts prometheus.GaugeOpts, labelNames []string, ttl time.Duration) *GaugeVec

func (*GaugeVec) WithLabelValues

func (gv *GaugeVec) WithLabelValues(val ...string) *GaugeWithTTL

type GaugeWithTTL

type GaugeWithTTL struct {
	// contains filtered or unexported fields
}

func (*GaugeWithTTL) Set

func (gwt *GaugeWithTTL) Set(val float64)

type LabelWithValue

type LabelWithValue struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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