datapointstorage

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identifier

func Identifier(resource *monitoredrespb.MonitoredResource, extraLabels map[string]string, metric pmetric.Metric, attributes pcommon.Map) uint64

Identifier returns the unique string identifier for a metric.

Types

type Cache

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

func NewCache

func NewCache(shutdown <-chan struct{}) *Cache

NewCache instantiates a cache and starts background processes.

func (*Cache) GetExponentialHistogramDataPoint added in v0.29.0

func (c *Cache) GetExponentialHistogramDataPoint(identifier uint64) (pmetric.ExponentialHistogramDataPoint, bool)

GetExponentialHistogramDataPoint retrieves the point associated with the identifier, and whether or not it was found.

func (*Cache) GetHistogramDataPoint added in v0.29.0

func (c *Cache) GetHistogramDataPoint(identifier uint64) (pmetric.HistogramDataPoint, bool)

GetHistogramDataPoint retrieves the point associated with the identifier, and whether or not it was found.

func (*Cache) GetNumberDataPoint added in v0.29.0

func (c *Cache) GetNumberDataPoint(identifier uint64) (pmetric.NumberDataPoint, bool)

GetNumberDataPoint retrieves the point associated with the identifier, and whether or not it was found.

func (*Cache) GetSummaryDataPoint added in v0.29.0

func (c *Cache) GetSummaryDataPoint(identifier uint64) (pmetric.SummaryDataPoint, bool)

GetSummaryDataPoint retrieves the point associated with the identifier, and whether or not it was found.

func (*Cache) SetExponentialHistogramDataPoint added in v0.29.0

func (c *Cache) SetExponentialHistogramDataPoint(identifier uint64, point pmetric.ExponentialHistogramDataPoint)

SetExponentialHistogramDataPoint assigns the point to the identifier in the cache.

func (*Cache) SetHistogramDataPoint added in v0.29.0

func (c *Cache) SetHistogramDataPoint(identifier uint64, point pmetric.HistogramDataPoint)

SetHistogramDataPoint assigns the point to the identifier in the cache.

func (*Cache) SetNumberDataPoint added in v0.29.0

func (c *Cache) SetNumberDataPoint(identifier uint64, point pmetric.NumberDataPoint)

SetNumberDataPoint assigns the point to the identifier in the cache.

func (*Cache) SetSummaryDataPoint added in v0.29.0

func (c *Cache) SetSummaryDataPoint(identifier uint64, point pmetric.SummaryDataPoint)

SetSummaryDataPoint assigns the point to the identifier in the cache.

Jump to

Keyboard shortcuts

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