data

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collapse

func Collapse(ts []*v1.Data) *v1.Data

func CollapseLogs

func CollapseLogs(ds []*logsv1.LogsData) *logsv1.LogsData

func CollapseMetrics

func CollapseMetrics(ds []*metricsV1.MetricsData) *metricsV1.MetricsData

func CollapseTrace

func CollapseTrace(ds []*tracev1.TracesData) *tracev1.TracesData

func Zero

func Zero(r v1.RESOURCE) *v1.Data

Types

type Sorter

type Sorter[T any, R any, S any] struct {
	// contains filtered or unexported fields
}

func (*Sorter[T, R, S]) Len

func (r *Sorter[T, R, S]) Len() int

func (*Sorter[T, R, S]) Less

func (r *Sorter[T, R, S]) Less(i, j int) bool

func (*Sorter[T, R, S]) Reset

func (r *Sorter[T, R, S]) Reset()

func (*Sorter[T, R, S]) Result

func (r *Sorter[T, R, S]) Result() []R

func (*Sorter[T, R, S]) Sort

func (r *Sorter[T, R, S]) Sort()

func (*Sorter[T, R, S]) Swap

func (r *Sorter[T, R, S]) Swap(i, j int)

Jump to

Keyboard shortcuts

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