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