annotations

package
v0.0.0-...-d89feaf Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationConfigMap

type AnnotationConfigMap map[MetricConfigKey]*AnnotationConfigs

func (AnnotationConfigMap) GetAnnotationConfig

func (m AnnotationConfigMap) GetAnnotationConfig(metricName string, metricType autoscalingv2.MetricSourceType) (*AnnotationConfigs, bool)

func (AnnotationConfigMap) Parse

func (m AnnotationConfigMap) Parse(annotations map[string]string) error

type AnnotationConfigs

type AnnotationConfigs struct {
	CollectorType string
	Configs       map[string]string
	PerReplica    bool
	Interval      time.Duration
}

type MetricConfigKey

type MetricConfigKey struct {
	Type       autoscalingv2.MetricSourceType
	MetricName string
}

Jump to

Keyboard shortcuts

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