priority_table

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 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 PriorityTable

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

PriorityTable represents set of samples with limited size. Samples added to the table are ordered by the hitcount of the sample. Priority determines which samples dimensions will be aggregated.

func NewPriorityTable

func NewPriorityTable(schema *schema.Schema, limits limits.Limits) *PriorityTable

func (*PriorityTable) Add

func (p *PriorityTable) Add(s *sample.Sample) error

func (*PriorityTable) CollapseSamples

func (p *PriorityTable) CollapseSamples() error

func (*PriorityTable) Samples

func (p *PriorityTable) Samples() map[string]*sample.Sample

Jump to

Keyboard shortcuts

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