common

package
v0.0.0-...-e1a97c8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InnerReq

type InnerReq struct {
	Method      string
	Path        string
	Query       string
	Headers     map[string][]string
	BackhaulIds []string
	ChanId      uint16
}

type InnerResp

type InnerResp struct {
	RequestId  string
	Status     string
	StatusCode int
	Headers    map[string][]string
}

type MetricsBatch

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

func (*MetricsBatch) AddCount

func (mb *MetricsBatch) AddCount(name string, value float64, tags ...string)

func (*MetricsBatch) AddCountInt

func (mb *MetricsBatch) AddCountInt(name string, value int, tags ...string)

func (*MetricsBatch) AddCountUint64

func (mb *MetricsBatch) AddCountUint64(name string, value uint64, tags ...string)

func (*MetricsBatch) AddGauge

func (mb *MetricsBatch) AddGauge(name string, value float64, tags ...string)

func (*MetricsBatch) AddGaugeInt

func (mb *MetricsBatch) AddGaugeInt(name string, value int, tags ...string)

func (*MetricsBatch) AddGaugeUint64

func (mb *MetricsBatch) AddGaugeUint64(name string, value uint64, tags ...string)

func (*MetricsBatch) ObserveGolangRuntime

func (mb *MetricsBatch) ObserveGolangRuntime()

type MetricsEmitter

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

func NewMetricsEmitter

func NewMetricsEmitter(appName string, metricPrefix string) (*MetricsEmitter, error)

func (*MetricsEmitter) CollectForever

func (me *MetricsEmitter) CollectForever(intervalSecs int, collectorFunc func(*MetricsBatch))

Jump to

Keyboard shortcuts

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