metrics

package
v0.0.0-...-a305310 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AxiomMetrics

type AxiomMetrics struct {
	ServerId    string
	DatasetName string
	ApiToken    string
	IngestUrl   string
	Throughput  uint64
	Mutex       sync.Mutex
}

func NewMetrics

func NewMetrics() (*AxiomMetrics, error)

func (*AxiomMetrics) GetThroughput

func (m *AxiomMetrics) GetThroughput() uint64

Return the throughput and reset the count

func (*AxiomMetrics) IncrementThroughput

func (m *AxiomMetrics) IncrementThroughput()

Increment the throughput count

func (*AxiomMetrics) SendMetrics

func (m *AxiomMetrics) SendMetrics() error

Send the metrics over to Axiom

type Metrics

type Metrics interface {
	IncrementThroughput()
	GetThroughput() uint64
	SendMetrics() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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