rollup

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXPIRATION             = 10 * time.Minute
	GorouterHttpMetricName = "http"
)

Variables

This section is empty.

Functions

func NewCounterRollup

func NewCounterRollup(log *logger.Logger, nodeIndex string, rollupTags []string, opts ...CounterRollupOption) *counterRollup

func NewHistogramRollup

func NewHistogramRollup(log *logger.Logger, nodeIndex string, rollupTags []string, opts ...HistogramRollupOption) *histogramRollup

func NewNullRollup

func NewNullRollup() *nullRollup

Types

type CounterRollupOption added in v1.4.3

type CounterRollupOption func(*counterRollup)

func WithCounterRollupExpiration added in v1.4.3

func WithCounterRollupExpiration(expiration time.Duration) CounterRollupOption

type HistogramRollupOption added in v1.4.3

type HistogramRollupOption func(*histogramRollup)

func WithHistogramRollupExpiration added in v1.4.3

func WithHistogramRollupExpiration(expiration time.Duration) HistogramRollupOption

type PointsBatch

type PointsBatch struct {
	Points []*rpc.Point
	Size   int
}

type Rollup

type Rollup interface {
	Record(timestamp int64, sourceId string, tags map[string]string, value int64)
	Rollup(timestamp int64) []*PointsBatch
}

Jump to

Keyboard shortcuts

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