metrics

package
v0.0.0-...-4e8f430 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeMetricsByPod

type NodeMetricsByPod struct {
	Clientset        *kubernetes.Clientset
	MetricsClientset *metricsv.Clientset
	Name             string
	SortBy           string
	View             string
}

NodeMetricsByPod ...

func NewNodeMetricsByPod

func NewNodeMetricsByPod(clientset *kubernetes.Clientset, metricsClientset *metricsv.Clientset, name, sortBy string, view string) *NodeMetricsByPod

NewNodeMetricsByPod ...

func (*NodeMetricsByPod) GetPodMetrics

func (n *NodeMetricsByPod) GetPodMetrics() ([]PodMetric, error)

GetPodMetrics ...

type PodMetric

type PodMetric struct {
	CPU             int64
	LimitsCPU       int64
	LimitsMemory    int64
	Memory          int64
	Name            string
	Namespace       string
	RequestedCPU    int64
	RequestedMemory int64
	SortBy          string
}

PodMetric ...

type SortMetrics

type SortMetrics []PodMetric

SortMetrics ...

func (SortMetrics) Len

func (ms SortMetrics) Len() int

func (SortMetrics) Less

func (ms SortMetrics) Less(i, j int) bool

func (SortMetrics) Swap

func (ms SortMetrics) Swap(i, j int)

Jump to

Keyboard shortcuts

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