datapointstorage

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 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) string

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 string) (*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 string) (*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 string) (*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 string) (*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 string, 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 string, 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 string, 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 string, 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