test

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 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 CheckpointSet

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

func NewCheckpointSet

func NewCheckpointSet(encoder export.LabelEncoder) *CheckpointSet

NewCheckpointSet returns a test CheckpointSet that new records could be added. Records are grouped by their LabelSet.

func (*CheckpointSet) Add

func (p *CheckpointSet) Add(desc *export.Descriptor, newAgg export.Aggregator, labels ...core.KeyValue) (agg export.Aggregator, added bool)

Add a new descriptor to a Checkpoint.

If there is an existing record with the same descriptor and LabelSet the stored aggregator will be returned and should be merged.

func (*CheckpointSet) AddCounter added in v0.2.0

func (p *CheckpointSet) AddCounter(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) AddGauge added in v0.2.0

func (p *CheckpointSet) AddGauge(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) AddMeasure added in v0.2.0

func (p *CheckpointSet) AddMeasure(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) ForEach

func (p *CheckpointSet) ForEach(f func(export.Record))

func (*CheckpointSet) Reset

func (p *CheckpointSet) Reset()

Jump to

Keyboard shortcuts

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