external

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package external contains models for external metrics as returned by the K8s metrics APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Current       value.MetricValue `json:"current,omitempty"`
	ReadyPodCount *int64            `json:"readyPodCount,omitempty"`
	Timestamp     time.Time         `json:"timestamp,omitempty"`
}

Metric (Resource) is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).

Jump to

Keyboard shortcuts

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