metric

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Bytes   int64
	Bundles int64
}

type Metric

type Metric struct {
	TotalInvalid    Counter
	TotalSent       Counter
	TotalReceived   Counter
	MessageSent     map[message.Type]*Counter
	MessageReceived map[message.Type]*Counter
}

func NewMetric

func NewMetric() Metric

func (*Metric) UpdateInvalidMetric

func (m *Metric) UpdateInvalidMetric(bytes int64)

func (*Metric) UpdateReceivedMetric

func (m *Metric) UpdateReceivedMetric(msgType message.Type, bytes int64)

func (*Metric) UpdateSentMetric

func (m *Metric) UpdateSentMetric(msgType message.Type, bytes int64)

Jump to

Keyboard shortcuts

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