Documentation ¶
Index ¶
- func Identifier(resource *monitoredrespb.MonitoredResource, extraLabels map[string]string, ...) uint64
- type Cache
- func (c *Cache) GetExponentialHistogramDataPoint(identifier uint64) (pmetric.ExponentialHistogramDataPoint, bool)
- func (c *Cache) GetHistogramDataPoint(identifier uint64) (pmetric.HistogramDataPoint, bool)
- func (c *Cache) GetNumberDataPoint(identifier uint64) (pmetric.NumberDataPoint, bool)
- func (c *Cache) GetSummaryDataPoint(identifier uint64) (pmetric.SummaryDataPoint, bool)
- func (c *Cache) SetExponentialHistogramDataPoint(identifier uint64, point pmetric.ExponentialHistogramDataPoint)
- func (c *Cache) SetHistogramDataPoint(identifier uint64, point pmetric.HistogramDataPoint)
- func (c *Cache) SetNumberDataPoint(identifier uint64, point pmetric.NumberDataPoint)
- func (c *Cache) SetSummaryDataPoint(identifier uint64, point pmetric.SummaryDataPoint)
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.