metricscache

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsCache

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

func NewMetricsCache

func NewMetricsCache() MetricsCache

func (*MetricsCache) Delete

func (mc *MetricsCache) Delete(scaledObjectIdentifier string)

func (*MetricsCache) ReadRecord

func (mc *MetricsCache) ReadRecord(scaledObjectIdentifier, metricName string) (MetricsRecord, bool)

func (*MetricsCache) StoreRecords

func (mc *MetricsCache) StoreRecords(scaledObjectIdentifier string, metricsRecords map[string]MetricsRecord)

type MetricsRecord

type MetricsRecord struct {
	IsActive    bool
	Metric      []external_metrics.ExternalMetricValue
	ScalerError error
}

Jump to

Keyboard shortcuts

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