contracts

package
v0.0.0-...-2fe86b1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Key        string
	Tags       []string
	Value      interface{}
	Rate       float64
	MetricType string
}

func NewMetric

func NewMetric(key string, value interface{}, tags []string, rate float64, metricType string) (*Metric, error)

func (*Metric) IsDurationMetric

func (s *Metric) IsDurationMetric() bool

func (*Metric) IsFloat64Metric

func (s *Metric) IsFloat64Metric() bool

func (*Metric) IsInt64Metric

func (s *Metric) IsInt64Metric() bool

func (*Metric) IsStringMetric

func (s *Metric) IsStringMetric() bool

Jump to

Keyboard shortcuts

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