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 (*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
}
Click to show internal directories.
Click to hide internal directories.