Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsClient ¶
type MetricsClient interface { // GetContainersMetrics returns an array of ContainerMetricsSnapshots, // representing resource usage for every running container in the cluster GetContainersMetrics() ([]*model.ContainerMetricsSnapshot, error) }
MetricsClient provides simple metrics on resources usage on containter level.
func NewMetricsClient ¶
func NewMetricsClient(metricsGetter resourceclient.PodMetricsesGetter) MetricsClient
NewMetricsClient creates new instance of MetricsClient, which is used by recommender. It requires an instance of PodMetricsesGetter, which is used for underlying communication with metrics server.
type SpecClient ¶
type SpecClient interface { // Returns BasicPodSpec for each pod in the cluster GetPodSpecs() ([]*model.BasicPodSpec, error) }
SpecClient provides information about pods and containers Specification
func NewSpecClient ¶
func NewSpecClient(podLister v1lister.PodLister) SpecClient
NewSpecClient creates new client which can be used to get basic information about pods specification It requires PodLister which is a data source for this client.
Click to show internal directories.
Click to hide internal directories.