metrics

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

Metrics contains the collected metrics

func New

func New() *Metrics

New generates new metrics

func (*Metrics) CountBackup

func (m *Metrics) CountBackup(backupFile string)

CountBackup updates metrics counter

func (*Metrics) CountError

func (m *Metrics) CountError(op string)

CountError increases error counter for the given operation

func (*Metrics) Start

func (m *Metrics) Start(log *slog.Logger)

Start starts the metrics server

Jump to

Keyboard shortcuts

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