metrics

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 25

Documentation

Index

Constants

View Source
const (
	ConditionDeleted = "Deleted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

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

func NewRecorder

func NewRecorder() *Recorder

func (*Recorder) Collectors

func (r *Recorder) Collectors() []prometheus.Collector

func (*Recorder) RecordCondition

func (r *Recorder) RecordCondition(ref corev1.ObjectReference, condition metav1.Condition, deleted bool)

func (*Recorder) RecordDuration

func (r *Recorder) RecordDuration(ref corev1.ObjectReference, start time.Time)

func (*Recorder) RecordSuspend added in v0.5.0

func (r *Recorder) RecordSuspend(ref corev1.ObjectReference, suspend bool)

Jump to

Keyboard shortcuts

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