metrics

package
v0.0.0-...-c302471 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcileOperation string = "Reconcile"

	UpdateOperationType string = "Update"
)

Variables

This section is empty.

Functions

func Deployment

func Deployment(
	opeartion string,
	operationType string,
) map[string]any

Deployment gets common logging attributes for a deployment.

Types

type Metrics

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

Metrics is a metrics tracker for an api operation.

func New

func New() (*Metrics, error)

func (*Metrics) ApiComponentCount

func (m *Metrics) ApiComponentCount(
	componentCount int,
	operation string,
	operationType string,
)

ApiComponentCount gets the total count of components for an API operation.

func (*Metrics) Close

func (m *Metrics) Close()

Close closes all metrics.

Jump to

Keyboard shortcuts

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