metrics

package
v0.0.0-...-baaee6e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandStats

type CommandStats struct {
	Calls        int64
	TotalTime    int64
	LastExecTime time.Time
}

type Metrics

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

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) AddCommandExecution

func (m *Metrics) AddCommandExecution(cmd string, duration time.Duration)

func (*Metrics) GetCommandCount

func (m *Metrics) GetCommandCount() int64

func (*Metrics) GetStats

func (m *Metrics) GetStats() map[string]interface{}

func (*Metrics) IncrCommandCount

func (m *Metrics) IncrCommandCount()

Jump to

Keyboard shortcuts

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