metrics

package
v0.0.0-...-1a65ef4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVManager

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

func NewCSVMetricManager

func NewCSVMetricManager() *CSVManager

func (*CSVManager) Add

func (m *CSVManager) Add(name string)

func (*CSVManager) Flush

func (m *CSVManager) Flush()

func (*CSVManager) Observe

func (m *CSVManager) Observe(name string, value float64, tags map[string]interface{})

func (*CSVManager) Save

func (m *CSVManager) Save(namesapce string)

type EmptyManager

type EmptyManager struct {
}

func NewEmptyMetricManager

func NewEmptyMetricManager() *EmptyManager

func (*EmptyManager) Add

func (m *EmptyManager) Add(name string)

func (*EmptyManager) Flush

func (m *EmptyManager) Flush()

func (*EmptyManager) Observe

func (m *EmptyManager) Observe(name string, value float64, tags map[string]interface{})

func (*EmptyManager) Save

func (m *EmptyManager) Save(namesapce string)

type Manager

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

func NewTimeplusMetricManager

func NewTimeplusMetricManager(timeplusAddress string, timeplusTenant string, timeplusAPIkey string) *Manager

func (*Manager) Add

func (m *Manager) Add(name string)

func (*Manager) Flush

func (m *Manager) Flush()

func (*Manager) Observe

func (m *Manager) Observe(name string, value float64, tags map[string]interface{})

func (*Manager) Save

func (m *Manager) Save(namesapce string)

type Metric

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

func NewMetric

func NewMetric() *Metric

type MetricRecord

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

type Metrics

type Metrics interface {
	Add(name string)
	Observe(name string, value float64, tags map[string]interface{})
	Save(namespace string)
	Flush()
}

Jump to

Keyboard shortcuts

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