collector

package
v0.0.0-...-9ba6f28 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Aggregators sync.Map
	Buckets     sync.Map
}

func NewCollector

func NewCollector(ctx context.Context) (*Collector, error)

func (*Collector) Aggregate

func (c *Collector) Aggregate(m *base.Metric)

func (*Collector) Bucket

func (c *Collector) Bucket(name string, count int) []*base.Snapshot

func (*Collector) Clear

func (c *Collector) Clear(source, group string)

func (*Collector) ClearAll

func (c *Collector) ClearAll()

func (*Collector) Top

func (c *Collector) Top(group string) []*base.Snapshot

Jump to

Keyboard shortcuts

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