client

package
v0.0.0-...-3326cfd Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedMetricsAPIVersionAvailable

func SupportedMetricsAPIVersionAvailable(discoveredAPIGroups *metav1.APIGroupList) bool

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func (*Client) GetNodeMetricsList

func (c *Client) GetNodeMetricsList() ([]NodeMetrics, error)

func (*Client) GetPodAndContainerMetricsList

func (c *Client) GetPodAndContainerMetricsList() (*PodAndContainerMetricsList, error)

type ContainerMetrics

type ContainerMetrics struct {
	Namespace       string
	Pod             string
	Name            string
	CPUMillicores   int64
	MemoryMibibytes int64
}

type NodeMetrics

type NodeMetrics struct {
	Name            string
	CPUMillicores   int64
	CPUPercent      float64
	MemoryMibibytes int64
	MemoryPercent   float64
}

type PodAndContainerMetricsList

type PodAndContainerMetricsList struct {
	PodMetricsList       []PodMetrics
	ContainerMetricsList []ContainerMetrics
}

type PodMetrics

type PodMetrics struct {
	Namespace       string
	Name            string
	CPUMillicores   int64
	MemoryMibibytes int64
}

Jump to

Keyboard shortcuts

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