metrics

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	ReportingPeriod time.Duration
	// contains filtered or unexported fields
}

Recorder holds keys for metrics

func NewRecorder

func NewRecorder() (*Recorder, error)

NewRecorder creates a new metrics recorder instance to log the PAC PipelineRun related metrics

func (*Recorder) Count

func (r *Recorder) Count(provider, event string) error

Count logs number of times a pipelinerun is ran for a provider

Jump to

Keyboard shortcuts

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